Package io.agora.mediaplayer.data
Class PlayerUpdatedInfo
java.lang.Object
io.agora.mediaplayer.data.PlayerUpdatedInfo
Call back PlayerUpdatedInfo to the user, when some information of the media player is updated.
-
Field Summary
FieldsModifier and TypeFieldDescriptionlongThe bit number of each audio sample.longThe audio channel number.longAudio sample rate.The device ID of the playback device.longVideo height.longVideo width. -
Constructor Summary
ConstructorsConstructorDescriptionPlayerUpdatedInfo(String internalPlayerUuid, String deviceId) PlayerUpdatedInfo(String internalPlayerUuid, String deviceId, long videoHeight, long videoWidth, long audioSampleRate, long audioChannels, long audioBitsPerSample) -
Method Summary
Modifier and TypeMethodDescriptionlonglonglonglonglongvoidsetAudioBitsPerSample(long audioBitsPerSample) Set the audio bits per sample.voidsetAudioChannels(long audioChannels) Set the audio channels.voidsetAudioSampleRate(long audioSampleRate) Set the audio sample rate.voidsetDeviceId(String deviceId) Set the device ID.voidsetInternalPlayerUuid(String internalPlayerUuid) Set the internal player UUID.voidsetVideoHeight(long videoHeight) Set the video height.voidsetVideoWidth(long videoWidth) Set the video width.toString()
-
Field Details
-
internalPlayerUuid
-
deviceId
The device ID of the playback device. -
videoHeight
public long videoHeightVideo height. -
videoWidth
public long videoWidthVideo width. -
audioSampleRate
public long audioSampleRateAudio sample rate. -
audioChannels
public long audioChannelsThe audio channel number. -
audioBitsPerSample
public long audioBitsPerSampleThe bit number of each audio sample.
-
-
Constructor Details
-
PlayerUpdatedInfo
public PlayerUpdatedInfo() -
PlayerUpdatedInfo
-
PlayerUpdatedInfo
-
-
Method Details
-
setInternalPlayerUuid
Set the internal player UUID.- Parameters:
internalPlayerUuid- The internal player UUID.
-
setDeviceId
Set the device ID.- Parameters:
deviceId- The device ID.
-
setVideoHeight
public void setVideoHeight(long videoHeight) Set the video height.- Parameters:
videoHeight- The video height.
-
setVideoWidth
public void setVideoWidth(long videoWidth) Set the video width.- Parameters:
videoWidth- The video width.
-
setAudioSampleRate
public void setAudioSampleRate(long audioSampleRate) Set the audio sample rate.- Parameters:
audioSampleRate- The audio sample rate.
-
setAudioChannels
public void setAudioChannels(long audioChannels) Set the audio channels.- Parameters:
audioChannels- The audio channels.
-
setAudioBitsPerSample
public void setAudioBitsPerSample(long audioBitsPerSample) Set the audio bits per sample.- Parameters:
audioBitsPerSample- The audio bits per sample.
-
getInternalPlayerUuid
- Returns:
- The internal player UUID.
-
getDeviceId
- Returns:
- The device ID.
-
getVideoWidth
public long getVideoWidth()- Returns:
- The video width.
-
getVideoHeight
public long getVideoHeight()- Returns:
- The video height.
-
getAudioSampleRate
public long getAudioSampleRate()- Returns:
- The audio sample rate.
-
getaudioChannels
public long getaudioChannels()- Returns:
- The audio channels.
-
getAudioBitsPerSample
public long getAudioBitsPerSample()- Returns:
- The audio bits per sample.
-
toString
-