removePublishStreamUrl method

  1. @override
Future<void> removePublishStreamUrl(
  1. String url
)

Removes an RTMP stream from the CDN.

This method removes the RTMP URL address (added by RtcEngine.addPublishStreamUrl) from a CDN live stream. The SDK reports the result of this method call in the RtcEngineEventHandler.rtmpStreamingStateChanged callback.

Note

  • Ensure that you enable the RTMP Converter service before using this function. See Prerequisites in Push Streams to CDN.
  • Ensure that the user joins a channel before calling this method.
  • This method applies to LiveBroadcasting only.
  • This method removes only one stream RTMP 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});
}