onMediaDataPublisherFileClose property

(void Function(ZegoMediaDataPublisher mediaDataPublisher, int errorCode, String path)?) onMediaDataPublisherFileClose
read / write

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

Available since: 2.17.0 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. -1 is a file error. -2 is a path exception. -3 is a decoding exception. -4 is an incorrect timestamp. -5 Unable to fix audio/video synchronization. -6 Unsupported audio sample rate. Contact technical support for details.
  • path Path of currently open file

Implementation

static void Function(ZegoMediaDataPublisher mediaDataPublisher, int errorCode,
    String path)? onMediaDataPublisherFileClose;