removePublishStreamUrl method

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

Removes an RTMP or RTMPS stream from the CDN.

This method removes the CDN streaming URL (added by RtcEngine.addPublishStreamUrl) from a CDN live stream to report the state of removing an RTMP or RTMPS stream from the CDN.

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 CDN streaming URL each time it is called.

Parameter url The CDN streaming URL 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,
  });
}