onMediaDataPublisherFileClose method

void onMediaDataPublisherFileClose(
  1. ZegoMediaDataPublisher mediaDataPublisher,
  2. int errorCode,
  3. String path
)

The event callback of the media data publisher closing a media file.

Description: The event callback of the media data publisher closing a media file. Trigger: The callback triggered when the media data publisher start unloading a media file. Restrictions: None.

  • mediaDataPublisher Callback publisher object
  • errorCode error code. 0 means closing the file normally.
  • path Path of currently open file

Implementation

void onMediaDataPublisherFileClose(
  ZegoMediaDataPublisher mediaDataPublisher,
  int errorCode,
  String path,
) {}