Agora Java API Reference for Android

Static Public Member Functions | Public Attributes | List of all members
io.agora.mediaplayer.Constants.MediaPlayerPreloadEvent Enum Reference

Events that occur when media resources are preloaded. More...

## Static Public Member Functions
static int | getValue (MediaPlayerPreloadEvent type)
static MediaPlayerPreloadEvent | fromNativeIndex (int nativeIndex)
static MediaPlayerPreloadEvent | getTypeByValue (int value)

## Public Attributes
| PLAYER_PRELOAD_EVENT_BEGIN =(0)
| PLAYER_PRELOAD_EVENT_COMPLETE =(1)
| PLAYER_PRELOAD_EVENT_ERROR =(2)

## Detailed Description

Events that occur when media resources are preloaded.

## Member Data Documentation

## ◆ PLAYER_PRELOAD_EVENT_BEGIN

io.agora.mediaplayer.Constants.MediaPlayerPreloadEvent.PLAYER_PRELOAD_EVENT_BEGIN =(0)

0: Starts preloading media resources.

## ◆ PLAYER_PRELOAD_EVENT_COMPLETE

io.agora.mediaplayer.Constants.MediaPlayerPreloadEvent.PLAYER_PRELOAD_EVENT_COMPLETE =(1)

1: Preloading media resources is complete.

## ◆ PLAYER_PRELOAD_EVENT_ERROR

io.agora.mediaplayer.Constants.MediaPlayerPreloadEvent.PLAYER_PRELOAD_EVENT_ERROR =(2)

2: An error occurs when preloading media resources.