Class ContentInfoHolder
java.lang.Object
com.nagra.otvaa.sdk.insightwrapper.ContentInfoHolder
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the language of the AudioReturns an array of integers of available bitrates (in Kbps)Returns the Channel ID (mostly for live streams)Returns the Channel name (mostly for live streams)Returns a unique identifier for this content, used to fetch licence and encryption keysReturns the content nameintReturns the duration of content (ms)Returns the event identifier within the channelReturns the event nameintReturns the nominal frames per secondgetGenre()Deprecated.Returns the content genre This method has been deprecated, please use ContentInfoHolder#getGenreList()Gets the content genregetName()Deprecated.Returns a boolean value set to true if content is encryptedReturns the language of the subtitlesgetType()Returns a string containing more details about the content (e.g., codecs, tracks, etc.)getUri()Returns the URI for accessing this contentvoidsetAudioLanguage(String xAudioLanguage) Sets the language of the audiovoidsetBitrates(List<Integer> xBitrates) Sets an array of integers of available bitrates (in Kbps)voidsetChannelId(String xChannelId) Sets the Channel ID (mostly for live streams)voidsetChannelName(String xChannelName) Sets the Channel name (mostly for live streams)voidsetContentId(String xContentId) Sets a unique identifier for this content, used to fetch licence and encryption keysvoidsetContentName(String xContentName) Sets the content namevoidsetDuration(int xDuration) Sets the duration of content (ms)voidsetEventId(String xEventId) Sets the event identifier within the channelvoidsetEventName(String xEventName) Sets the event namevoidsetFramesPerSecondNominal(int xFramesPerSecondNominal) Sets the nominal frames per secondvoidDeprecated.Sets the content genre This method has been deprecated, please use ContentInfoHolder#setGenreList(List)voidsetGenreList(List<String> xGenre) Sets the content genrevoidDeprecated.voidsetScrambled(Boolean xScrambled) Sets a boolean value set to true if content is encryptedvoidsetSubtitleLanguage(String xSubtitleLanguage) voidSets a string containing type about the contentvoidSets the URI for accessing this contenttoJSON()
-
Constructor Details
-
ContentInfoHolder
public ContentInfoHolder()
-
-
Method Details
-
setContentId
Sets a unique identifier for this content, used to fetch licence and encryption keys- Parameters:
xContentId- the ContentId value
-
setChannelId
Sets the Channel ID (mostly for live streams)- Parameters:
xChannelId- the ChannelId value
-
setChannelName
Sets the Channel name (mostly for live streams)- Parameters:
xChannelName- the ChannelName value
-
setEventId
Sets the event identifier within the channel- Parameters:
xEventId- the EventId value
-
setEventName
Sets the event name- Parameters:
xEventName- the EventName value
-
setUri
Sets the URI for accessing this content- Parameters:
xUri- the Uri value
-
setType
Sets a string containing type about the content- Parameters:
xType- the Type value (VOD,LIVE,CU,DVR,PVR,CDVR,SO)
-
setContentName
Sets the content name- Parameters:
xContentName- the Name value
-
setName
Deprecated.Deprecated. Use setContentName instead. Sets the name *- Parameters:
xName- User friendly name of the current media
-
getName
Deprecated.Deprecated. Use getContentName instead.- Returns:
- User friendly name of the current media
-
setGenre
Deprecated.Sets the content genre This method has been deprecated, please use ContentInfoHolder#setGenreList(List)- Parameters:
xGenre- the Genre value
-
setGenreList
Sets the content genre- Parameters:
xGenre- list of content genres
-
setScrambled
Sets a boolean value set to true if content is encrypted- Parameters:
xScrambled- the Scrambled value
-
setBitrates
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
Returns a unique identifier for this content, used to fetch licence and encryption keys- Returns:
- the ContentId value
-
getChannelId
Returns the Channel ID (mostly for live streams)- Returns:
- the ChannelId value
-
getChannelName
Returns the Channel name (mostly for live streams)- Returns:
- the ChannelName value
-
getEventId
Returns the event identifier within the channel- Returns:
- the EventId value
-
getEventName
Returns the event name- Returns:
- the EventName value
-
getUri
Returns the URI for accessing this content- Returns:
- the URI value
-
getType
Returns a string containing more details about the content (e.g., codecs, tracks, etc.)- Returns:
- the type value
-
getContentName
Returns the content name- Returns:
- the name value
-
getGenre
Deprecated.Returns the content genre This method has been deprecated, please use ContentInfoHolder#getGenreList()- Returns:
- the genre value
-
getGenreList
Gets the content genre- Returns:
- xGenre list of content genres
-
getScrambled
Returns a boolean value set to true if content is encrypted- Returns:
- the scrambled value
-
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
Sets the language of the audio- Parameters:
xAudioLanguage- User friendly name of the current audio language for the current media
-
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
-
getSubtitleLanguage
Returns the language of the subtitles- Returns:
-
toJSON
-