Setting the Information About the Applications to Be Shared
Interface Description
This interface is invoked to set the information about the window to be shared.
Notes
Prerequisites: The WebSocket connection with the OpenEyeCall has been set up, and a video call is in progress.
Method Definition
OpenEyeCall.prototype.setShareWindow = function(hwnd,callbacks)
Parameter Description
Parameter |
Type |
Mandatory/Optional |
Description |
---|---|---|---|
hwnd |
int |
Mandatory |
Handle of the window to be shared. For details, see the interface description in Obtaining the List of Shareable Applications. |
callbacks |
Mandatory |
Callback method. |
Parameter |
Type |
Mandatory/Optional |
Description |
---|---|---|---|
response |
function |
Mandatory |
For details about the input parameters of the callback method, see Table 3. |
Parameter |
Type |
Description |
---|---|---|
description |
String |
Description of the current request. |
result |
Number |
Configuration result. The value 0 indicates success and other values indicate failure. |
rsp |
Number |
Internal message ID. |
The following is an example of input parameters of the callback method:
{ "description" : "tsdk_share_evt_setshareapp", "result" : 0, "rsp" : 67754 }
Examples
function setShareApp(){ this.global_openEye_SDK.openEyeCall.setShareWindow(document.getElementById("shareAppList").value,{ response: setShareAppRespone }) } //step2 callback. Set callback of the window to be shared. function setShareAppRespone(data){ console.log(data); if (data.result == 0) { console.info("setShareApp Success"); } else { console.error("setShareApp failed"); } }
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot