Media Player Kit v1.3.0 API Reference for Android
io.agora.mediaplayer.Constants.MediaPlayerEvent Enum Reference

Public Member Functions

 PLAYER_EVENT_SWITCH_BEGIN (8)
 
 PLAYER_EVENT_SWITCH_COMPLETE (9)
 
 PLAYER_EVENT_SWITCH_ERROR (10)
 

Static Public Member Functions

static int getValue (MediaPlayerEvent type)
 

Public Attributes

 PLAYER_EVENT_SEEK_BEGIN =(0)
 
 PLAYER_EVENT_SEEK_COMPLETE =(1)
 
 PLAYER_EVENT_SEEK_ERROR =(2)
 
 PLAYER_EVENT_AUDIO_TRACK_CHANGED =(5)
 
 PLAYER_EVENT_BUFFER_LOW =(6)
 
 PLAYER_EVENT_BUFFER_RECOVER =(7)
 

Private Member Functions

 MediaPlayerEvent (int v)
 

Private Attributes

int value
 

Detailed Description

MediaPlayerEvent, reporting the result of the seek operation to the new playback position.

Member Function Documentation

◆ PLAYER_EVENT_SWITCH_BEGIN()

io.agora.mediaplayer.Constants.MediaPlayerEvent.PLAYER_EVENT_SWITCH_BEGIN ( )

8: Starts switching the media resource.

◆ PLAYER_EVENT_SWITCH_COMPLETE()

io.agora.mediaplayer.Constants.MediaPlayerEvent.PLAYER_EVENT_SWITCH_COMPLETE ( )

9: Media resource switching is complete.

◆ PLAYER_EVENT_SWITCH_ERROR()

io.agora.mediaplayer.Constants.MediaPlayerEvent.PLAYER_EVENT_SWITCH_ERROR ( 10  )

10: Media resource switching error.

Member Data Documentation

◆ PLAYER_EVENT_SEEK_BEGIN

io.agora.mediaplayer.Constants.MediaPlayerEvent.PLAYER_EVENT_SEEK_BEGIN =(0)

0: Begins to seek to the new playback position.

◆ PLAYER_EVENT_SEEK_COMPLETE

io.agora.mediaplayer.Constants.MediaPlayerEvent.PLAYER_EVENT_SEEK_COMPLETE =(1)

1: Finish seeking to the new playback position.

◆ PLAYER_EVENT_SEEK_ERROR

io.agora.mediaplayer.Constants.MediaPlayerEvent.PLAYER_EVENT_SEEK_ERROR =(2)

2: Error occurs when seeking to the new playback position.

◆ PLAYER_EVENT_AUDIO_TRACK_CHANGED

io.agora.mediaplayer.Constants.MediaPlayerEvent.PLAYER_EVENT_AUDIO_TRACK_CHANGED =(5)

5: The audio track used by the player has been changed.

◆ PLAYER_EVENT_BUFFER_LOW

io.agora.mediaplayer.Constants.MediaPlayerEvent.PLAYER_EVENT_BUFFER_LOW =(6)

6: The currently buffered data is not enough to support playback.

◆ PLAYER_EVENT_BUFFER_RECOVER

io.agora.mediaplayer.Constants.MediaPlayerEvent.PLAYER_EVENT_BUFFER_RECOVER =(7)

7: The currently buffered data is just enough to support playback.