开源视频会议bigbluebutton开发(5)——开发web端,red5应用,桌面共享

开发 BBB-web

 

bbb-conf --setup-dev web

 

 启动grails app

 

 

cd /home/firstuser/dev/bigbluebutton/bigbluebutton-web/

 

 下载必要的库

 

gradle resolveDeps

 

 使grails监听8888端口

 

grails -Dserver.port=8888 run-app

 

 如果报这样的错误: "Could not resolve placeholder 'apiVersion'",重新运行上述命令!

 

开发Red5应用

 

确保red5/webapps,是可写入的,否则,在部署到Red5上遭遇到许可错误!

 

bbb-conf --setup-dev apps

 

 停止red5

 

 sudo /etc/init.d/red5 stop

 

 编译部署 bbb-aps

 

cd /home/firstuser/dev/bigbluebutton/bigbluebutton-apps
gradle resolveDeps
gradle clean war deploy

 

 启动red5

 

cd /usr/share/red5/
sudo -u red5 ./red5.sh

 

 

 开发 BBB-Voice

 

 

# Stop red5
    sudo /etc/init.d/red5 stop

cd /home/firstuser/dev/bigbluebutton/bbb-voice
gradle resolveDeps

# Compile and deploy bbb-voice
gradle war deploy

# On another terminal window, start Red5
cd /usr/share/red5/
sudo -u red5 ./red5.sh

 

 开发 桌面共享

 

 

cd /home/firstuser/dev/bigbluebutton/deskshare
gradle resolveDeps

 

 构建应用

 

cd applet
gradle jar

 

 创建一个密匙来签署应用,根据相应的提示输入密码.

 

ant create-signing-key

 

 签署jar文件

 

ant sign-jar

 

 如果报错:

 

sign-jar:
  [signjar] Signing JAR: /home/firstuser/dev/bigbluebutton/deskshare/applet/build/libs/bbb-deskshare-applet-0.71.jar to /home/firstuser/dev/bigbluebutton/deskshare/applet/build/libs/bbb-deskshare-applet-0.71.jar as code.signer
  [signjar] jarsigner: unable to sign jar: java.util.zip.ZipException: duplicate entry: com/myjavatools/web/ClientHttpRequest.class
  [signjar] Enter Passphrase for keystore:

BUILD FAILED
/home/firstuser/dev/bigbluebutton/deskshare/applet/build.xml:70: jarsigner returned: 1

Total time: 3 seconds

 

 输入下面命令,从新编译

 

 cd ../common
  gradle clean
  gradle jar

 

 然后重新签署应用,签署的jar文件位于/home/firstuser/dev/bigbluebutton/deskshare/applet/build/libs/bbb-deskshare-applet-0.8.jar

我们需要把它复制到nginx加载客户端的地方!

如果你同时在开发bbb客户端

 

cp /home/firstuser/dev/bigbluebutton/deskshare/applet/build/libs/bbb-deskshare-applet-0.8.jar /home/firstuser/dev/bigbluebutton/bigbluebutton-client/client

 

 如果没有开发客户端,nginx会从默认位置加载,因此

 

 

cp /home/firstuser/dev/bigbluebutton/deskshare/applet/build/libs/bbb-deskshare-applet-0.8.jar /var/www/bigbluebutton/client/

 构建服务器端的组件

 

cd /home/firstuser/dev/bigbluebutton/deskshare/app
# Compile
gradle war
# Copy over to Red5
gradle deploy

# Stop red5
    sudo /etc/init.d/red5 stop

cd /home/firstuser/dev/bigbluebutton/bigbluebutton-apps
# Compile and deploy bbb-apps
gradle war deploy

# On another terminal window, start Red5
cd /usr/share/red5/
sudo -u red5 ./red5.sh

 错误解决

 

如果显示 "Welcome to Nginx"页面,检查nginx里bbb是否正常,你可以看到bbb在/etc/nginx/sites-enabled

如果bbb不正常,那就启用它

 

sudo ln -s /etc/nginx/sites-available/bigbluebutton /etc/nginx/sites-enabled/bigbluebutton

sudo /etc/init.d/nginx restart

 

本文有些地方可能写的有失误的地方,望海涵~,转载请表明出处http://yangactive.iteye.com/blog/1626529

你可能感兴趣的:(nginx,webapp,Red5,deskshare)