第68篇 摄像头屏蔽(六)

    xiaoxiao2021-03-26  27

    关键词:摄像头屏蔽

    一、摄像头屏蔽

    1.1只有音频

    https://192.168.1.14:9001/demos2/Audio-Conferencing.html

    现在思路是按这个重写服务器上的,至于自由加视频,以后做一对多的时候再说。

    视频这个应该用如下方法去除,如下:

               connection.socketMessageEvent= 'audio-conference-demo';

     

               connection.session= {

                   audio: true

               };

               connection.sdpConstraints.mandatory= {

                   OfferToReceiveAudio: true,

                   OfferToReceiveVideo: false

               };

     

               connection.mediaConstraints.video= false;

    1.2 对应修改了备份服务器上9006

       修改了index.html及student.html两个文件。测试如下:

    测试服务器----------------------------------------------------------9006

    老师端:

    https://192.168.1.14:9006/demos/index.html?roomid=666

    学生端:

    https://192.168.1.14:9006/demos/student.html?t=300#666

     

    测试通过了。

    1.3 在备份上测试一下

       修改了index.html及student.html两个文件。测试如下:

    测试服务器----------------------------------------------------------9006

    老师端:

    https://123.57.206.36:9006/demos/index.html?roomid=666

     

    学生端:

    https://123.57.206.36:9006/demos/student.html?t=300#666

     

    测试通过

    注:学生找老师也能通过了。

    1.4 备份服务器上IOS-----------9006 安卓iOS代码共用版  //学生: 

    https://stt.dz101.com:9006/demos/student.html?t=300&sys=2#1990

     //老师:

    https://stt.dz101.com:9006/demos/index.html?t=300&sys=2&imgUrl=http://123.57.206.36:8003/uploadfiles/2016/11/1478143874gHeUlH.jpeg&roomid=1990

    注:现在这个还是没声音,在去除了视频之后(是去除不是隐藏)

    1.5 备份服务器上IOS-----------9005 iOS代码版

    学生:----建房间

    https://stt.dz101.com:9005/demos/student.html?roomid=1990

    老师:

    https://stt.dz101.com:9005/demos/index.html?t=300&imgUrl=http://123.57.206.36:8003/uploadfiles/2016/11/1478143874gHeUlH.jpeg#1990

    注:上述还是不行,没声音,分析:难道是域名不行,那换个带ip的试试。

    2017年1月20日星期五

    转载请注明原文地址: https://ju.6miu.com/read-662438.html

    最新回复(0)