台湾一级a毛片在线播放,黄色精品偷拍视频大全,精品一区二区在线欧美日韩,日本特黄一级视频播三级片,日韩美女18岁美女视频,偷偷操不一样的99,国产午夜激无码av毛片久

智慧服務(wù),成就美好體驗(yàn) 項(xiàng)目咨詢

主頁 > 服務(wù)與支持 > 開發(fā)平臺 > 客戶端SDK參考 > Web SDK > 會議 屏幕共享

入門使用

屏幕共享

更新時(shí)間:2019-11-19

描述

指定用戶開啟或者關(guān)閉屏幕共享,接受或者拒絕共享邀請。

屏幕共享的前提是已加入會議。

業(yè)務(wù)流程

圖1 屏幕共享流程圖 
  1. 調(diào)用startScreenSharing()接口指定用戶開啟屏幕共享。

    代碼示例:

    var cloudecStartShareScreen = function (number) {
    	var conference = client.getConfHandler();
    	if (conference == null) {
    		alert("Meeting has not yet started");
    		return;
    	}
    	client.startScreenSharing(number);
    }
    
     

    參考文件:\usage\components\attendee_list.html。

  2. 用戶收到onSharedInComing事件。
    • 調(diào)用answerScreenSharing(true)接口接受共享邀請。
    • 調(diào)用answerScreenSharing(false)接口拒絕共享邀請。

    代碼示例:

    onSharedInComing: function (ret) {
        var con_ret = confirm("You have a sharing invitation,reject or accept?");
        if (con_ret == true) {
            ret.info.answerScreenSharing(true);
        } else {
            ret.info.answerScreenSharing(false);
        }
    }
    
     

    參考文件:\usage\event_process.js。

  3. 調(diào)用stopScreenSharing()接口指定用戶關(guān)閉屏幕共享。

    代碼示例:

    var cloudecStopShareScreen = function (number) {
    	var conference = client.getConfHandler();
    	if (conference == null) {
    		alert("Meeting has not yet started");
    		return;
    	}
    	client.stopScreenSharing(number);
    }
    
     

    參考文件:\usage\components\attendee_list.html。

注意事項(xiàng)