Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ZegoMediaPlayerListener

Hierarchy

  • ZegoMediaPlayerListener

Index

Events

mediaPlayerNetworkEvent

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

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

Unsupported platform: Web

property

{ZegoMediaPlayer} mediaPlayer - MediaPlayer instance

property

{ZegoMediaPlayerNetworkEvent} networkEvent - Network status event

Type declaration

mediaPlayerPlayingProgress

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

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

Unsupported platform: Web

property

{ZegoMediaPlayer} mediaPlayer - MediaPlayer instance

property

{number} millisecond - Progress in milliseconds

Type declaration

mediaPlayerStateUpdate

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

The callback triggered when the state of the media player changes.

Unsupported platform: Web

property

{ZegoMediaPlayer} mediaPlayer - MediaPlayer instance

property

{ZegoMediaPlayerState} state - Media player status

property

{number} errorCode - Error code, please refer to the Error Codes https://doc-en.zego.im/en/308.html for details

Type declaration

Generated using TypeDoc