客户端开发
下面的部分将教你怎么在BigBlueButton客户端上作出改变:
设置环境
首先我们需要拷贝最新的config.xml文件,并且通过安装来更新。依次执行下面2条命令:
cd ~/dev/bigbluebutton/
cp bigbluebutton-client/resources/config.xml.template bigbluebutton-client/src/conf/config.xml
然后将下面的ip地址改成你服务器的ip地址,执行命令:
# Update config.xml (replace the 192.168.1.145 with !BigBlueButton hostname/ip address)
sed -i s/HOST/192.168.1.145/g bigbluebutton-client/src/conf/config.xml
根据需要,更新你的文件,执行命令:
vi bigbluebutton-client/src/conf/config.xml
保存退出,现在我们需要设置nginx重定向客户端回到开发版本,如果你的/etc/bigbluebutton/nginx/nginx/client_dev 目录还没有nginx 客户端开发文件,执行下面命令来创建一个:(如果你的用户名不是firstuser,将firstuser改为你的用户名)
echo "
location /client/BigBlueButton.html {
root /home/firstuser/dev/bigbluebutton/bigbluebutton-client;
index index.html index.htm;
expires 1m;
}
# BigBlueButton Flash client.
location /client {
root /home/firstuser/dev/bigbluebutton/bigbluebutton-client;
index index.html index.htm;
}
" | sudo tee /etc/bigbluebutton/nginx/client_dev
检查内容,确保它和上面的匹配。同时,确保你将\home\firstuser改成了你的目录,执行下面命令: