Class IZegoMediaDataPublisherEventHandler


  • public abstract class IZegoMediaDataPublisherEventHandler
    extends java.lang.Object
    • Constructor Detail

      • IZegoMediaDataPublisherEventHandler

        public IZegoMediaDataPublisherEventHandler()
    • Method Detail

      • onMediaDataPublisherFileOpen

        public void onMediaDataPublisherFileOpen​(ZegoMediaDataPublisher mediaDataPublisher,
                                                 java.lang.String path)
        The event callback of the media data publisher opening a media file. Available since: 2.17.0 Description: 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. Restrictions: None.
        Parameters:
        mediaDataPublisher - Callback publisher object
        path - Path of currently open file
      • onMediaDataPublisherFileClose

        public void onMediaDataPublisherFileClose​(ZegoMediaDataPublisher mediaDataPublisher,
                                                  int errorCode,
                                                  java.lang.String path)
        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.
        Parameters:
        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
      • onMediaDataPublisherFileDataBegin

        public void onMediaDataPublisherFileDataBegin​(ZegoMediaDataPublisher mediaDataPublisher,
                                                      java.lang.String path)
        The event callback that the media data publisher has read data from the media file. Available since: 2.17.0 Description: 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. Restrictions: None.
        Parameters:
        mediaDataPublisher - Callback publisher object
        path - Path of currently open file
      • onMediaDataPublisherFileDataEnd

        public void onMediaDataPublisherFileDataEnd​(ZegoMediaDataPublisher mediaDataPublisher,
                                                    java.lang.String path)
        The event callback that the media data publisher has completed a file stream publishing. Available since: 3.14.0 Description: 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. Restrictions: None.
        Parameters:
        mediaDataPublisher - Callback publisher object.
        path - The path of the file that has completed stream publishing.