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

开发 BBB-web

Java代码
bbb-conf –setup-dev web

启动grails app

Java代码
cd /home/firstuser/dev/bigbluebutton/bigbluebutton-web/

下载必要的库

Java代码
gradle resolveDeps

使grails监听8888端口

Java代码
grails -Dserver.port=8888 run-app

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

开发Red5应用

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

Java代码
bbb-conf –setup-dev apps

停止red5

Java代码
sudo /etc/init.d/red5 stop

编译部署 bbb-aps

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

启动red5

Java代码
cd /usr/share/red5/
sudo -u red5 ./red5.sh

开发 BBB-Voice

Java代码

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

开发 桌面共享

Java代码
cd /home/firstuser/dev/bigbluebutton/deskshare
gradle resolveDeps

构建应用

Java代码
cd applet
gradle jar

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

Java代码
ant create-signing-key

签署jar文件

Java代码
ant sign-jar

如果报错:

Java代码
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

输入下面命令,从新编译

Java代码
cd ../common
gradle clean
gradle jar

然后重新签署应用,签署的jar文件位于/home/firstuser/dev/bigbluebutton/deskshare/applet/build/libs/bbb-deskshare-applet-0.8.jar
我们需要把它复制到nginx加载客户端的地方!
如果你同时在开发bbb客户端

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

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

Java代码
cp /home/firstuser/dev/bigbluebutton/deskshare/applet/build/libs/bbb-deskshare-applet-0.8.jar /var/www/bigbluebutton/client/
构建服务器端的组件

Java代码
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不正常,那就启用它

Java代码
sudo ln -s /etc/nginx/sites-available/bigbluebutton /etc/nginx/sites-enabled/bigbluebutton

sudo /etc/init.d/nginx restart

/—————————————————————————————————
——————花花世界:http://www.ourflowerld.com————————————–
—————花花世界专注于各种有创意有意思的内容的整理与收集。————————-
——————–包括创意生活、DIY、传统艺术、剪纸、年画等。—————————-
————————另外还会收集些旅游、摄影相关的作品。———————————
—————————-为自己和大家的生活添加点色彩。————————————
—————————————————————————————————-/

你可能感兴趣的:(开源视频会议bigbluebutton开发(5)——开发web端,red5应用,桌面共享)