Example:
const getVideoSources = async () => {
const result = await window.electron.getSources();
return result;
}
ZoomMtg.shareSource({
getVideoSourcesCallBack: getVideoSources,
success: function () {},
error: function () {}
});
Optionalerror?: FunctionCallback function in the event of an error.
Callback function needed to return the source of the Electron share:
Optionalsuccess?: FunctionCallback function on success.
When you use the Meeting SDK for web in an Electron application, if this method is registered, it calls getVideoSourcesCallBack when a user clicks "screen share" to obtain the application information returned by Electron that can share the desktop. Provide the callback function return desktopCapturer to share sources in the Electron app.
Example:
const getVideoSources = async () => {
const result = await window.electron.getSources();
return result;
}
ZoomMtg.shareSource({
getVideoSourcesCallBack: getVideoSources,
success: function () {},
error: function () {}
});
Callback function needed to return the source of the Electron share:
When you use the Meeting SDK for web in an Electron application, if this method is registered, it calls
getVideoSourcesCallBackwhen a user clicks "screen share" to obtain the application information returned by Electron that can share the desktop. Provide the callback function returndesktopCapturerto share sources in the Electron app.