destroyMediaDataPublisher method

Future<void> destroyMediaDataPublisher(
  1. ZegoMediaDataPublisher mediaDataPublisher
)

Destroys a media data publisher instance.

Available since: 2.17.0 Description: Destroys a media data publisher instance. Use cases: Often used in server-side publishing stream scenarios, such as AI classrooms. When to call: After calling the createEngine function to create an engine. Note: This function is only available in ZegoExpressVideo SDK!

  • mediaDataPublisher The media data publisher instance object to be destroyed

Implementation

Future<void> destroyMediaDataPublisher(
    ZegoMediaDataPublisher mediaDataPublisher) async {
  return await ZegoExpressImpl.instance
      .destroyMediaDataPublisher(mediaDataPublisher);
}