Class ContentInfoHolder

java.lang.Object
com.nagra.otvaa.sdk.insightwrapper.ContentInfoHolder

public class ContentInfoHolder extends Object
The ContentInfoHolder class contains the representation of the metadata for a single content item.

The metadata for one item consists of:

  • ContentId - a unique identifier for this content, used to fetch licence and encryption keys
  • ChannelId - channel ID (mostly for live streams)
  • ChannelName - channel name (mostly for live streams)
  • EventId - the event identifier within the channel
  • EventName - the event name
  • Uri - URI for accessing this asset
  • Type - a string containing more details about the content (e.g., codecs, tracks, etc.)
  • Name - the content name
  • GenreList - a list content genres
  • Scrambled - a boolean value set to true if content is encrypted
  • Bitrates - an array of integers of available bitrates (in Kbps)
  • Duration - duration of content (ms)
  • FramesPerSecondNominal - the expected FPS of the content
  • Constructor Details

    • ContentInfoHolder

      public ContentInfoHolder()
  • Method Details

    • setContentId

      public void setContentId(String xContentId)
      Sets a unique identifier for this content, used to fetch licence and encryption keys
      Parameters:
      xContentId - the ContentId value
    • setChannelId

      public void setChannelId(String xChannelId)
      Sets the Channel ID (mostly for live streams)
      Parameters:
      xChannelId - the ChannelId value
    • setChannelName

      public void setChannelName(String xChannelName)
      Sets the Channel name (mostly for live streams)
      Parameters:
      xChannelName - the ChannelName value
    • setEventId

      public void setEventId(String xEventId)
      Sets the event identifier within the channel
      Parameters:
      xEventId - the EventId value
    • setEventName

      public void setEventName(String xEventName)
      Sets the event name
      Parameters:
      xEventName - the EventName value
    • setUri

      public void setUri(String xUri)
      Sets the URI for accessing this content
      Parameters:
      xUri - the Uri value
    • setType

      public void setType(String xType)
      Sets a string containing type about the content
      Parameters:
      xType - the Type value (VOD,LIVE,CU,DVR,PVR,CDVR,SO)
    • setContentName

      public void setContentName(String xContentName)
      Sets the content name
      Parameters:
      xContentName - the Name value
    • setName

      @Deprecated public void setName(String xName)
      Deprecated.
      Deprecated. Use setContentName instead. Sets the name *
      Parameters:
      xName - User friendly name of the current media
    • getName

      @Deprecated public String getName()
      Deprecated.
      Deprecated. Use getContentName instead.
      Returns:
      User friendly name of the current media
    • setGenre

      @Deprecated public void setGenre(String xGenre)
      Deprecated.
      Sets the content genre This method has been deprecated, please use ContentInfoHolder#setGenreList(List)
      Parameters:
      xGenre - the Genre value
    • setGenreList

      public void setGenreList(List<String> xGenre)
      Sets the content genre
      Parameters:
      xGenre - list of content genres
    • setScrambled

      public void setScrambled(Boolean xScrambled)
      Sets a boolean value set to true if content is encrypted
      Parameters:
      xScrambled - the Scrambled value
    • setBitrates

      public void setBitrates(List<Integer> xBitrates)
      Sets an array of integers of available bitrates (in Kbps)
      Parameters:
      xBitrates - the Bitrates array
    • setDuration

      public void setDuration(int xDuration)
      Sets the duration of content (ms)
      Parameters:
      xDuration - the Duration value
    • setFramesPerSecondNominal

      public void setFramesPerSecondNominal(int xFramesPerSecondNominal)
      Sets the nominal frames per second
      Parameters:
      xFramesPerSecondNominal - the nominal frames per second
    • getContentId

      public String getContentId()
      Returns a unique identifier for this content, used to fetch licence and encryption keys
      Returns:
      the ContentId value
    • getChannelId

      public String getChannelId()
      Returns the Channel ID (mostly for live streams)
      Returns:
      the ChannelId value
    • getChannelName

      public String getChannelName()
      Returns the Channel name (mostly for live streams)
      Returns:
      the ChannelName value
    • getEventId

      public String getEventId()
      Returns the event identifier within the channel
      Returns:
      the EventId value
    • getEventName

      public String getEventName()
      Returns the event name
      Returns:
      the EventName value
    • getUri

      public String getUri()
      Returns the URI for accessing this content
      Returns:
      the URI value
    • getType

      public String getType()
      Returns a string containing more details about the content (e.g., codecs, tracks, etc.)
      Returns:
      the type value
    • getContentName

      public String getContentName()
      Returns the content name
      Returns:
      the name value
    • getGenre

      @Deprecated public String getGenre()
      Deprecated.
      Returns the content genre This method has been deprecated, please use ContentInfoHolder#getGenreList()
      Returns:
      the genre value
    • getGenreList

      public List<String> getGenreList()
      Gets the content genre
      Returns:
      xGenre list of content genres
    • getScrambled

      public Boolean getScrambled()
      Returns a boolean value set to true if content is encrypted
      Returns:
      the scrambled value
    • getBitrates

      public List<Integer> getBitrates()
      Returns an array of integers of available bitrates (in Kbps)
      Returns:
      the bitrates value
    • getDuration

      public int getDuration()
      Returns the duration of content (ms)
      Returns:
      the duration value
    • setAudioLanguage

      public void setAudioLanguage(String xAudioLanguage)
      Sets the language of the audio
      Parameters:
      xAudioLanguage - User friendly name of the current audio language for the current media
    • getAudioLanguage

      public String getAudioLanguage()
      Returns the language of the Audio
      Returns:
      the audio language value
    • getFramesPerSecondNominal

      public int getFramesPerSecondNominal()
      Returns the nominal frames per second
      Returns:
      the nominal frames per second
    • setSubtitleLanguage

      public void setSubtitleLanguage(String xSubtitleLanguage)
    • getSubtitleLanguage

      public String getSubtitleLanguage()
      Returns the language of the subtitles
      Returns:
    • toJSON

      public JSONObject toJSON()