removePublishStreamUrl method
Removes an RTMP stream from the CDN.
This method removes the RTMP URL address (added by RtcChannel.addPublishStreamUrl) from a CDN live stream. The SDK reports the result of this method call in the RtcChannelEventHandler.rtmpStreamingStateChanged callback.
Note
- Ensure that you enable the RTMP Converter service before using this function. See Prerequisites in Push Streams to CDN.
- This method can only be called by a broadcaster in a ChannelProfile.LiveBroadcasting channel .
- This method removes only one stream HTTP/HTTPS URL address each time it is called.
Parameter url
The RTMP URL address to be removed. The maximum length of this parameter is 1024 bytes. The URL address must not contain special characters, such as Chinese language characters.
Implementation
@override
Future<void> removePublishStreamUrl(String url) {
return _invokeMethod('removePublishStreamUrl', {'url': url});
}