Updated on 2025-07-28 GMT+08:00

Stopping Sharing

Function

This API is used to end sharing in a meeting. The UI of the SDK has implemented the function of stopping sharing. You can call this API to stop sharing on a third-party application. Call this API only when you are sharing content.

Function Prototype

stopShare(onStopShareResult?: (ret: SDKERR, reason: string) => void): voidstopShare(onStopShareResult?: (ret: SDKERR, reason: string) => void): void

Request Parameters

Table 1 Input parameter description
Parameter Mandatory Type Description
onStopShareResult Yes (ret: SDKERR, reason: string) => void Callback of stopping sharing.

Return Values

void

Callback Method Parameters

(ret: SDKERR, reason: string) => void

Table 2 Input parameter description
Parameter Type Description
ret For details about SDKERR, see Error Code Reference. Error code.
reason string Error description.