Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ZegoMediaPlayerListener

Hierarchy

  • ZegoMediaPlayerListener

Index

Properties

mediaPlayerNetworkEvent

mediaPlayerNetworkEvent: (mediaPlayer: ZegoMediaPlayer, networkEvent: ZegoMediaPlayerNetworkEvent) => void

The callback triggered when the network status of the media player changes.

Available since: 1.3.4 Description: The callback triggered when the network status of the media player changes. Trigger: When the media player is playing network resources, this callback will be triggered when the status change of the cached data. Restrictions: The callback will only be triggered when the network resource is played. Related APIs: [setNetWorkBufferThreshold].

param

Callback player object.

param

Network status event.

Type declaration

mediaPlayerPlayingProgress

mediaPlayerPlayingProgress: (mediaPlayer: ZegoMediaPlayer, millisecond: number) => void

The callback to report the current playback progress of the media player.

Available since: 1.3.4 Description: The callback triggered when the network status of the media player changes. Set the callback interval by calling [setProgressInterval]. When the callback interval is set to 0, the callback is stopped. The default callback interval is 1 second. Trigger: When the media player is playing network resources, this callback will be triggered when the status change of the cached data. Restrictions: None. Related APIs: [setProgressInterval].

param

Callback player object.

param

Progress in milliseconds.

Type declaration

mediaPlayerStateUpdate

mediaPlayerStateUpdate: (mediaPlayer: ZegoMediaPlayer, state: ZegoMediaPlayerState, errorCode: number) => void

MediaPlayer playback status callback.

Available since: 1.3.4 Description: MediaPlayer playback status callback. Trigger: The callback triggered when the state of the media player changes. Restrictions: None.

param

Callback player object.

param

Media player status.

param

Error code, please refer to the error codes document https://docs.zegocloud.com/en/5548.html for details.

Type declaration

Generated using TypeDoc