updateScreenCapture method
@hidden(macOS) @detail api @hiddensdk(audiosdk) @author wangzhanqiang @brief Updates the media type of the internal screen capture. @param type Media type. See ByteRTCScreenMediaType{@link #ByteRTCScreenMediaType}. @return - 0: Success. - < 0 : Fail. See ByteRTCReturnStatus{@link #ByteRTCReturnStatus} for more details @note - Call this API after starting screen capture. - You will receive rtcEngine:onVideoDeviceStateChanged:device_type:device_state:device_error:{@link #ByteRTCEngineDelegate#rtcEngine:onVideoDeviceStateChanged:device_type:device_state:device_error} or rtcEngine:onAudioDeviceStateChanged:device_type:device_state:device_error:{@link #ByteRTCEngineDelegate#rtcEngine:onAudioDeviceStateChanged:device_type:device_state:device_error}.
Implementation
FutureOr<int> updateScreenCapture(ByteRTCScreenMediaType type) async {
return await nativeCall('updateScreenCapture:', [type.$value]);
}