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.javaParameters
| Name | Type | Description |
|---|---|---|
| mediaDataPublisher | ZegoMediaDataPublisher * | Callback publisher object |
| path | String | Path 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.javaParameters
| Name | Type | Description |
|---|---|---|
| mediaDataPublisher | ZegoMediaDataPublisher * | Callback publisher object |
| errorCode | int | 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 | String | Path 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.javaParameters
| Name | Type | Description |
|---|---|---|
| mediaDataPublisher | ZegoMediaDataPublisher * | Callback publisher object |
| path | String | Path 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.javaParameters
| Name | Type | Description |
|---|---|---|
| mediaDataPublisher | ZegoMediaDataPublisher * | Callback publisher object. |
| path | String | The 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.
