logo
On this page

IZegoMediaDataPublisherEventHandler

IZegoMediaDataPublisherEventHandler

Declared in callback/IZegoMediaDataPublisherEventHandler.java

Methods

onMediaDataPublisherFileOpen

onMediaDataPublisherFileOpen
public void onMediaDataPublisherFileOpen(ZegoMediaDataPublisher * mediaDataPublisher, String path)
The event callback of the media data publisher opening a media file.
Declared in callback/IZegoMediaDataPublisherEventHandler.java

Parameters

NameTypeDescription
mediaDataPublisherZegoMediaDataPublisher *Callback publisher object
pathStringPath of currently open file

Details

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

  • Trigger: The callback triggered when the media data publisher start loading a media file.
  • Available since: 2.17.0
  • Restrictions: None.

onMediaDataPublisherFileClose

onMediaDataPublisherFileClose
public void onMediaDataPublisherFileClose(ZegoMediaDataPublisher * mediaDataPublisher, int errorCode, String path)
The event callback of the media data publisher closing a media file.
Declared in callback/IZegoMediaDataPublisherEventHandler.java

Parameters

NameTypeDescription
mediaDataPublisherZegoMediaDataPublisher *Callback publisher object
errorCodeinterror 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.
pathStringPath of currently open file

Details

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.
  • Available since: 2.17.0
  • Restrictions: None.

onMediaDataPublisherFileDataBegin

onMediaDataPublisherFileDataBegin
public void onMediaDataPublisherFileDataBegin(ZegoMediaDataPublisher * mediaDataPublisher, String path)
The event callback that the media data publisher has read data from the media file.
Declared in callback/IZegoMediaDataPublisherEventHandler.java

Parameters

NameTypeDescription
mediaDataPublisherZegoMediaDataPublisher *Callback publisher object
pathStringPath of currently open file

Details

The event callback that the media data publisher has read data from the media file.

  • Trigger: The callback triggered when the media data publisher begin to read media data from a media file.
  • Available since: 2.17.0
  • Restrictions: None.

onMediaDataPublisherFileDataEnd

onMediaDataPublisherFileDataEnd
public void onMediaDataPublisherFileDataEnd(ZegoMediaDataPublisher * mediaDataPublisher, String path)
The event callback that the media data publisher has completed a file stream publishing.
Declared in callback/IZegoMediaDataPublisherEventHandler.java

Parameters

NameTypeDescription
mediaDataPublisherZegoMediaDataPublisher *Callback publisher object.
pathStringThe path of the file that has completed stream publishing.

Details

The media data publisher has finished a file stream publishing.

  • Trigger: The callback triggered when the media data publisher has completed a file stream publishing.
  • Available since: 3.14.0
  • Restrictions: None.

Previous

izegoeventhandler

Next

izegomediaplayerblockdatahandler

On this page

Back to top