Class SeatMediaPlayerInfo


  • public class SeatMediaPlayerInfo
    extends java.lang.Object
    The SeatMediaPlayerInfo class encapsulates the media player information.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  SeatMediaPlayerInfo.PlaybackState
      The playback state value can be unknown, stopped, playing or paused.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getContentType()
      Gets the type of content, such as movies, tv show or album.
      java.lang.String getCurrentPlayingMediaUri()
      Gets the media URI for the media that is currently playing.
      int getDuration()
      Gets the duration of the media.
      int getElapsedTime()
      Gets the amount of time that the media has played.
      SeatMediaPlayerInfo.PlaybackState getPlayBackState()
      Gets the playback state for the media player.
      java.lang.String getPlayerId()
      Gets the unique identifier for the media player.
      java.lang.String getSoundtrack()
      Gets the ISO 639-2 language code for the media soundtrack.
      java.lang.String getSoundtrackType()
      Gets the type of media soundtrack
      java.lang.String getSubtitle()
      Gets the ISO 639-2 language code for the media subtitle.
      java.lang.String getSubtitleType()
      Gets the type of the media subtitle
      int getVolume()
      Gets the volume of the media.
      void setContentType​(java.lang.String contentType)
      Sets the type of media content, such as movies, tv show or album.
      void setCurrentPlayingMediaUri​(java.lang.String currentPlayingMediaUri)
      Sets the URI for the media that is currently playing.
      void setDuration​(int duration)
      Sets the duration of the media.
      void setElapsedTime​(int elapsedTime)
      Sets the amount of time that the media has played.
      void setPlayBackState​(SeatMediaPlayerInfo.PlaybackState playBackState)
      Sets the playback state for the media media player.
      void setPlayerId​(java.lang.String playerId)
      Sets the unique identifier for the media player.
      void setSoundtrack​(java.lang.String soundtrack)
      Sets the ISO 639-2 language code for the media soundtrack.
      void setSoundtrackType​(java.lang.String soundtrackType)
      sets the soundtrack type of media
      void setSubtitle​(java.lang.String subtitle)
      Sets the ISO 639-2 language code for the media subtitle.
      void setSubtitleType​(java.lang.String subtitleType)
      Sets the subtitle type of media
      void setVolume​(int volume)
      Sets the volume for the media.
      JSONObject toJson()
      Convert to Json object.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SeatMediaPlayerInfo

        public SeatMediaPlayerInfo()
    • Method Detail

      • getPlayerId

        public java.lang.String getPlayerId()
        Gets the unique identifier for the media player.
        Returns:
        playerId
      • getCurrentPlayingMediaUri

        public java.lang.String getCurrentPlayingMediaUri()
        Gets the media URI for the media that is currently playing.
        Returns:
        media URI
      • getContentType

        public java.lang.String getContentType()
        Gets the type of content, such as movies, tv show or album.
        Returns:
        content type
      • getSubtitle

        public java.lang.String getSubtitle()
        Gets the ISO 639-2 language code for the media subtitle.
        Returns:
        subtitle
      • getSoundtrack

        public java.lang.String getSoundtrack()
        Gets the ISO 639-2 language code for the media soundtrack.
        Returns:
        soundtrack
      • getSubtitleType

        public java.lang.String getSubtitleType()
        Gets the type of the media subtitle
      • getSoundtrackType

        public java.lang.String getSoundtrackType()
        Gets the type of media soundtrack
      • getVolume

        public int getVolume()
        Gets the volume of the media.

        Volume is specified from 0 to 100.
        Returns:
        volume
      • getDuration

        public int getDuration()
        Gets the duration of the media.

        Duration is specified in seconds.
        Returns:
        duration
      • getElapsedTime

        public int getElapsedTime()
        Gets the amount of time that the media has played.

        Elapsed time is specified in seconds.
        Returns:
        elapsed time
      • setPlayerId

        public void setPlayerId​(java.lang.String playerId)
        Sets the unique identifier for the media player.
      • setCurrentPlayingMediaUri

        public void setCurrentPlayingMediaUri​(java.lang.String currentPlayingMediaUri)
        Sets the URI for the media that is currently playing.
      • setPlayBackState

        public void setPlayBackState​(SeatMediaPlayerInfo.PlaybackState playBackState)
        Sets the playback state for the media media player.

        Values are paused, playing, stopped and unknown.
      • setContentType

        public void setContentType​(java.lang.String contentType)
        Sets the type of media content, such as movies, tv show or album.
      • setSubtitle

        public void setSubtitle​(java.lang.String subtitle)
        Sets the ISO 639-2 language code for the media subtitle.
      • setSoundtrack

        public void setSoundtrack​(java.lang.String soundtrack)
        Sets the ISO 639-2 language code for the media soundtrack.
      • setVolume

        public void setVolume​(int volume)
        Sets the volume for the media.

        The value is specified from 1 to 100.
      • setDuration

        public void setDuration​(int duration)
        Sets the duration of the media.

        Duration is specified in hours:minutes:seconds.
      • setElapsedTime

        public void setElapsedTime​(int elapsedTime)
        Sets the amount of time that the media has played.

        Elapsed time is specified in seconds.
      • setSubtitleType

        public void setSubtitleType​(java.lang.String subtitleType)
        Sets the subtitle type of media
        Parameters:
        subtitleType - type of subtitle
      • setSoundtrackType

        public void setSoundtrackType​(java.lang.String soundtrackType)
        sets the soundtrack type of media
        Parameters:
        soundtrackType - type of soundtrack of media
      • toJson

        public JSONObject toJson()
        Convert to Json object.