Class LaunchMediaRequest


  • public class LaunchMediaRequest
    extends java.lang.Object
    The LaunchMediaRequest class encapsulates the media request to be launched.
    • Constructor Summary

      Constructors 
      Constructor Description
      LaunchMediaRequest​(JSONObject args)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getCategoryId()
      Gets the unique identifier for the category.
      java.lang.String getContentType()
      Gets the type of content, such as movie, tv show or album.
      int getElapsedTime()
      Gets the amount of time that the media has played.
      java.lang.String getMediaUri()
      Gets the media URI for the media.
      java.lang.String getParentMediaUri()
      Gets the parent media URI for the media.
      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 soundtrack type
      java.lang.String getSubtitle()
      Gets the ISO 639-2 language code for the media subtitle.
      java.lang.String getSubtitleType()
      Get the subtitle type
      java.lang.String getVolume()
      Gets the volume of the media.
      void setPlayerId​(java.lang.String playerId)
      Sets the unique identifier for the media player.
      void setSoundtrackType​(java.lang.String soundtrackType)
      Sets the soundtrack type
      void setSubtitleType​(java.lang.String subtitleType)
      Sets the subtitle type
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • LaunchMediaRequest

        public LaunchMediaRequest​(JSONObject args)
    • Method Detail

      • getPlayerId

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

        public java.lang.String getMediaUri()
        Gets the media URI for the media.
        Returns:
        media URI URI for the specified media
      • getParentMediaUri

        public java.lang.String getParentMediaUri()
        Gets the parent media URI for the media.
        Returns:
        parent media URI URI for the parent media
      • getContentType

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

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

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

        public java.lang.String getVolume()
        Gets the volume of the media.

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

        public java.lang.String getCategoryId()
        Gets the unique identifier for the category.
      • getElapsedTime

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

        Elapsed time is specified in seconds.
        Returns:
        elapsed time Number of seconds the media has played
      • setPlayerId

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

        public java.lang.String getSubtitleType()
        Get the subtitle type
      • setSubtitleType

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

        public java.lang.String getSoundtrackType()
        Gets the soundtrack type
      • setSoundtrackType

        public void setSoundtrackType​(java.lang.String soundtrackType)
        Sets the soundtrack type
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object