大香伊蕉国产成人在线视频,首页-老汉色最新网站,免费国产人成网站在线播放,五月婷婷丁香,国产一级毛片电影网,谁有国产黄色网址,99久久国产综合精品swag

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

主頁(yè) > 服務(wù)與支持 > 開(kāi)發(fā)平臺(tái) > 客戶端SDK參考 > Web SDK > 會(huì)議 屏幕共享

入門使用

屏幕共享

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

描述

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

屏幕共享的前提是已加入會(huì)議。

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

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

    代碼示例:

    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)接口接受共享邀請(qǐng)。
    • 調(diào)用answerScreenSharing(false)接口拒絕共享邀請(qǐng)。

    代碼示例:

    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)

無(wú)