onMediaDataPublisherFileClose method
void
onMediaDataPublisherFileClose()
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 objecterrorCode
error code. 0 means closing the file normally.path
Path of currently open file
Implementation
void onMediaDataPublisherFileClose(
ZegoMediaDataPublisher mediaDataPublisher,
int errorCode,
String path,
) {}