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 nameint
Returns the duration of content (ms)Returns the event identifier within the channelReturns the event nameint
Returns 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 contentvoid
setAudioLanguage
(String xAudioLanguage) Sets the language of the audiovoid
setBitrates
(List<Integer> xBitrates) Sets an array of integers of available bitrates (in Kbps)void
setChannelId
(String xChannelId) Sets the Channel ID (mostly for live streams)void
setChannelName
(String xChannelName) Sets the Channel name (mostly for live streams)void
setContentId
(String xContentId) Sets a unique identifier for this content, used to fetch licence and encryption keysvoid
setContentName
(String xContentName) Sets the content name (for VOD streams)void
setDuration
(int xDuration) Sets the duration of content (ms)void
setEventId
(String xEventId) Sets the event identifier within the channel (for live streams)void
setEventName
(String xEventName) Sets the event namevoid
setFramesPerSecondNominal
(int xFramesPerSecondNominal) Sets the nominal frames per secondvoid
Deprecated.Sets the content genre This method has been deprecated, please use ContentInfoHolder#setGenreList(List)void
setGenreList
(List<String> xGenre) Sets the content genrevoid
Deprecated.void
setScrambled
(Boolean xScrambled) Sets a boolean value set to true if content is encryptedvoid
setSubtitleLanguage
(String xSubtitleLanguage) void
Sets a string containing type about the contentvoid
Sets 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 (for live streams)- Parameters:
xEventId
- the EventId value
-
setEventName
Sets the event name- Parameters:
xEventName
- the EventName value (for live streams)
-
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 (for VOD streams)- 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
-