Agora Java API Reference for Android
Public Member Functions | List of all members
io.agora.mediaplayer.data.PlayerUpdatedInfo Class Reference

Public Member Functions

 PlayerUpdatedInfo (String internalPlayerUuid, String deviceId, long videoHeight, long videoWidth, long audioSampleRate, long audioChannels, long audioBitsPerSample)
 
 PlayerUpdatedInfo (String internalPlayerUuid, String deviceId)
 
void setInternalPlayerUuid (String internalPlayerUuid)
 
void setDeviceId (String deviceId)
 
void setVideoHeight (long videoHeight)
 
void setVideoWidth (long videoWidth)
 
void setAudioSampleRate (long audioSampleRate)
 
void setAudioChannels (long audioChannels)
 
void setAudioBitsPerSample (long audioBitsPerSample)
 
String getInternalPlayerUuid ()
 Get the internal player UUID. More...
 
String getDeviceId ()
 Get the device ID. More...
 
long getVideoWidth ()
 Get the video width. More...
 
long getVideoHeight ()
 Get the video height. More...
 
long getAudioSampleRate ()
 Get the audio sample rate. More...
 
long getaudioChannels ()
 Get the audio channels. More...
 
long getAudioBitsPerSample ()
 Get the audio bits per sample. More...
 
String toString ()
 

Detailed Description

Call back PlayerUpdatedInfo to the user, when some information of the media player is updated.

Member Function Documentation

◆ setInternalPlayerUuid()

void io.agora.mediaplayer.data.PlayerUpdatedInfo.setInternalPlayerUuid ( String  internalPlayerUuid)

Set the internal player UUID.

@technical preview

Parameters
internalPlayerUuidThe internal player UUID.

◆ setDeviceId()

void io.agora.mediaplayer.data.PlayerUpdatedInfo.setDeviceId ( String  deviceId)

Set the device ID.

@technical preview

Parameters
deviceIdThe device ID.

◆ setVideoHeight()

void io.agora.mediaplayer.data.PlayerUpdatedInfo.setVideoHeight ( long  videoHeight)

Set the video height.

@technical preview

Parameters
videoHeightThe video height.

◆ setVideoWidth()

void io.agora.mediaplayer.data.PlayerUpdatedInfo.setVideoWidth ( long  videoWidth)

Set the video width.

@technical preview

Parameters
videoWidthThe video width.

◆ setAudioSampleRate()

void io.agora.mediaplayer.data.PlayerUpdatedInfo.setAudioSampleRate ( long  audioSampleRate)

Set the audio sample rate.

@technical preview

Parameters
audioSampleRateThe audio sample rate.

◆ setAudioChannels()

void io.agora.mediaplayer.data.PlayerUpdatedInfo.setAudioChannels ( long  audioChannels)

Set the audio channels.

@technical preview

Parameters
audioChannelsThe audio channels.

◆ setAudioBitsPerSample()

void io.agora.mediaplayer.data.PlayerUpdatedInfo.setAudioBitsPerSample ( long  audioBitsPerSample)

Set the audio bits per sample.

@technical preview

Parameters
audioBitsPerSampleThe audio bits per sample.

◆ getInternalPlayerUuid()

String io.agora.mediaplayer.data.PlayerUpdatedInfo.getInternalPlayerUuid ( )

Get the internal player UUID.

Returns
The internal player UUID.

◆ getDeviceId()

String io.agora.mediaplayer.data.PlayerUpdatedInfo.getDeviceId ( )

Get the device ID.

Returns
The device ID.

◆ getVideoWidth()

long io.agora.mediaplayer.data.PlayerUpdatedInfo.getVideoWidth ( )

Get the video width.

Returns
The video width.

◆ getVideoHeight()

long io.agora.mediaplayer.data.PlayerUpdatedInfo.getVideoHeight ( )

Get the video height.

Returns
The video height.

◆ getAudioSampleRate()

long io.agora.mediaplayer.data.PlayerUpdatedInfo.getAudioSampleRate ( )

Get the audio sample rate.

Returns
The audio sample rate.

◆ getaudioChannels()

long io.agora.mediaplayer.data.PlayerUpdatedInfo.getaudioChannels ( )

Get the audio channels.

Returns
The audio channels.

◆ getAudioBitsPerSample()

long io.agora.mediaplayer.data.PlayerUpdatedInfo.getAudioBitsPerSample ( )

Get the audio bits per sample.

Returns
The audio bits per sample.