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

Static Public Member Functions

static int getValue (MediaPlayerError type)
 

Public Attributes

 PLAYER_ERROR_NONE =(0)
 
 PLAYER_ERROR_INVALID_ARGUMENTS =(-1)
 
 PLAYER_ERROR_INTERNAL =(-2)
 
 PLAYER_ERROR_NO_RESOURCE =(-3)
 
 PLAYER_ERROR_INVALID_MEDIA_SOURCE =(-4)
 
 PLAYER_ERROR_UNKNOWN_STREAM_TYPE =(-5)
 
 PLAYER_ERROR_OBJ_NOT_INITIALIZED =(-6)
 
 PLAYER_ERROR_CODEC_NOT_SUPPORTED =(-7)
 
 PLAYER_ERROR_VIDEO_RENDER_FAILED =(-8)
 
 PLAYER_ERROR_INVALID_STATE =(-9)
 
 PLAYER_ERROR_URL_NOT_FOUND =(-10)
 
 PLAYER_ERROR_INVALID_CONNECTION_STATE =(-11)
 
 PLAY_ERROR_SRC_BUFFER_UNDERFLOW =(-12)
 

Private Member Functions

 MediaPlayerError (int v)
 

Private Attributes

int value
 

Detailed Description

MediaPlayerError, reporting the player's error code.

Member Data Documentation

◆ PLAYER_ERROR_NONE

io.agora.mediaplayer.Constants.MediaPlayerError.PLAYER_ERROR_NONE =(0)

0: No error.

◆ PLAYER_ERROR_INVALID_ARGUMENTS

io.agora.mediaplayer.Constants.MediaPlayerError.PLAYER_ERROR_INVALID_ARGUMENTS =(-1)

-1: Invalid arguments.

◆ PLAYER_ERROR_INTERNAL

io.agora.mediaplayer.Constants.MediaPlayerError.PLAYER_ERROR_INTERNAL =(-2)

-2: Internal error.

◆ PLAYER_ERROR_NO_RESOURCE

io.agora.mediaplayer.Constants.MediaPlayerError.PLAYER_ERROR_NO_RESOURCE =(-3)

-3: No resource.

◆ PLAYER_ERROR_INVALID_MEDIA_SOURCE

io.agora.mediaplayer.Constants.MediaPlayerError.PLAYER_ERROR_INVALID_MEDIA_SOURCE =(-4)

-4: Invalid media resource.

◆ PLAYER_ERROR_UNKNOWN_STREAM_TYPE

io.agora.mediaplayer.Constants.MediaPlayerError.PLAYER_ERROR_UNKNOWN_STREAM_TYPE =(-5)

-5: The type of the media stream is unknown.

◆ PLAYER_ERROR_OBJ_NOT_INITIALIZED

io.agora.mediaplayer.Constants.MediaPlayerError.PLAYER_ERROR_OBJ_NOT_INITIALIZED =(-6)

-6: The object is not initialized.

◆ PLAYER_ERROR_CODEC_NOT_SUPPORTED

io.agora.mediaplayer.Constants.MediaPlayerError.PLAYER_ERROR_CODEC_NOT_SUPPORTED =(-7)

-7: The codec is not supported.

◆ PLAYER_ERROR_VIDEO_RENDER_FAILED

io.agora.mediaplayer.Constants.MediaPlayerError.PLAYER_ERROR_VIDEO_RENDER_FAILED =(-8)

-8: Invalid renderer.

◆ PLAYER_ERROR_INVALID_STATE

io.agora.mediaplayer.Constants.MediaPlayerError.PLAYER_ERROR_INVALID_STATE =(-9)

-9: Error occurs in the internal state of the player.

◆ PLAYER_ERROR_URL_NOT_FOUND

io.agora.mediaplayer.Constants.MediaPlayerError.PLAYER_ERROR_URL_NOT_FOUND =(-10)

-10: The URL of the media resource can not be found.

◆ PLAYER_ERROR_INVALID_CONNECTION_STATE

io.agora.mediaplayer.Constants.MediaPlayerError.PLAYER_ERROR_INVALID_CONNECTION_STATE =(-11)

-11: Invalid connection between the player and Agora's Server.

◆ PLAY_ERROR_SRC_BUFFER_UNDERFLOW

io.agora.mediaplayer.Constants.MediaPlayerError.PLAY_ERROR_SRC_BUFFER_UNDERFLOW =(-12)

-12: The playback buffer is insufficient.