Class PlayerUpdatedInfo

java.lang.Object
io.agora.mediaplayer.data.PlayerUpdatedInfo

public class PlayerUpdatedInfo extends Object
Call back PlayerUpdatedInfo to the user, when some information of the media player is updated.
  • Field Details

    • internalPlayerUuid

      public String internalPlayerUuid
    • deviceId

      public String deviceId
      The device ID of the playback device.
    • videoHeight

      public long videoHeight
      Video height.
    • videoWidth

      public long videoWidth
      Video width.
    • audioSampleRate

      public long audioSampleRate
      Audio sample rate.
    • audioChannels

      public long audioChannels
      The audio channel number.
    • audioBitsPerSample

      public long audioBitsPerSample
      The bit number of each audio sample.
  • Constructor Details

    • PlayerUpdatedInfo

      public PlayerUpdatedInfo()
    • PlayerUpdatedInfo

      public PlayerUpdatedInfo(String internalPlayerUuid, String deviceId, long videoHeight, long videoWidth, long audioSampleRate, long audioChannels, long audioBitsPerSample)
    • PlayerUpdatedInfo

      public PlayerUpdatedInfo(String internalPlayerUuid, String deviceId)
  • Method Details

    • setInternalPlayerUuid

      public void setInternalPlayerUuid(String internalPlayerUuid)
      Set the internal player UUID.
      Parameters:
      internalPlayerUuid - The internal player UUID.
    • setDeviceId

      public void setDeviceId(String deviceId)
      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

      public String getInternalPlayerUuid()
      Returns:
      The internal player UUID.
    • getDeviceId

      public String 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

      public String toString()
      Overrides:
      toString in class Object