![]() |
RDK Documentation (Open Sourced RDK Components)
|
Class for the Media Metadata event. More...
#include <AampEvent.h>


Public Member Functions | |
| MediaMetadataEvent ()=delete | |
| MediaMetadataEvent (const MediaMetadataEvent &)=delete | |
| MediaMetadataEvent & | operator= (const MediaMetadataEvent &)=delete |
| MediaMetadataEvent (long duration, int width, int height, bool hasDrm, bool isLive, const std::string &DrmType, double programStartTime) | |
| MediaMetadataEvent Constructor. | |
| virtual | ~MediaMetadataEvent () |
| MediaMetadataEvent Destructor. | |
| long | getDuration () const |
| Get Duration. More... | |
| double | getProgramStartTime () const |
| Get Program/Availability Start Time. More... | |
| void | addLanguage (const std::string &lang) |
| Add a supported language. More... | |
| const std::vector< std::string > & | getLanguages () const |
| Get Languages. More... | |
| int | getLanguagesCount () const |
| Get Language Count. More... | |
| void | addBitrate (long bitrate) |
| Add a supported bitrate. More... | |
| const std::vector< long > & | getBitrates () const |
| Get Bitrates. More... | |
| int | getBitratesCount () const |
| Get Bitrate Count. More... | |
| int | getWidth () const |
| Get Width. More... | |
| int | getHeight () const |
| Get Height. More... | |
| bool | hasDrm () const |
| Supports DRM or not. More... | |
| bool | isLive () const |
| Check for Live content or VOD. More... | |
| const std::string & | getDrmType () const |
| Get Current DRM Type. More... | |
| void | addSupportedSpeed (float speed) |
| Add a supported speed. More... | |
| const std::vector< float > & | getSupportedSpeeds () const |
| Get Supported Speeds. More... | |
| int | getSupportedSpeedCount () const |
| Get Supported Speed count. More... | |
| void | SetVideoMetaData (float frameRate, VideoScanType videoScanType, int aspectRatioWidth, int aspectRatioHeight, const std::string &videoCodec, const std::string &hdrType, const std::string &pcRating, int ssi) |
| Sets additional metadata for video. More... | |
| const std::vector< long > & | getAudioBitrates () const |
| void | SetAudioMetaData (const std::string &audioCodec, const std::string &mixType, bool isAtmos) |
| Sets additional metadata for Audio. More... | |
| void | addAudioBitrate (long bitrate) |
| Add a supported bitrate. More... | |
| const std::string & | getRatings () const |
| get Parental control ratings More... | |
| int | getSsi () const |
| get Signal strength indicator More... | |
| float | getFrameRate () const |
| get framerate More... | |
| VideoScanType | getVideoScanType () const |
| Get VideoScanType. More... | |
| int | getAspectRatioWidth () const |
| Get AspectRatioWidth. More... | |
| int | getAspectRatioHeight () const |
| Get AspectRatioHeight. More... | |
| const std::string & | getVideoCodec () const |
| Get VideoCodec. More... | |
| const std::string & | getHdrType () const |
| Get HdrType. More... | |
| const std::string & | getAudioCodec () const |
| Get AudioCodec. More... | |
| const std::string & | getAudioMixType () const |
| returns AudioMixType More... | |
| bool | getAtmosInfo () const |
| Get Atmos info. More... | |
| const std::string & | getMediaFormat () |
| Get Media format type. More... | |
| void | setMediaFormat (const std::string &mediaFormatName) |
| Set Media format type. More... | |
Public Member Functions inherited from AAMPEventObject | |
| AAMPEventObject (const AAMPEventObject &)=delete | |
| Copy constructor disabled. More... | |
| AAMPEventObject & | operator= (const AAMPEventObject &)=delete |
| assignment operator disabled More... | |
| AAMPEventObject (AAMPEventType type) | |
| AAMPEventObject Constructor. | |
| virtual | ~AAMPEventObject () |
| AAMPEvent Destructor. | |
| AAMPEventType | getType () const |
| Get Event Type. More... | |
Private Attributes | |
| long | mDuration |
| std::vector< std::string > | mLanguages |
| std::vector< long > | mBitrates |
| int | mWidth |
| int | mHeight |
| bool | mHasDrm |
| std::vector< float > | mSupportedSpeeds |
| bool | mIsLive |
| std::string | mDrmType |
| double | mProgramStartTime |
| std::string | mPCRating |
| int | mSsi |
| float | mFrameRate |
| VideoScanType | mVideoScanType |
| int | mAspectRatioWidth |
| int | mAspectRatioHeight |
| std::string | mVideoCodec |
| std::string | mHdrType |
| std::string | mMediaFormatName |
| std::vector< long > | mAudioBitrates |
| std::string | mAudioCodec |
| std::string | mAudioMixType |
| bool | isAtmos |
Class for the Media Metadata event.
Definition at line 747 of file AampEvent.h.
|
delete |
| [in] | duration | - Duration of Media Metadata |
| [in] | width | - Video width |
| [in] | height | - Video height |
| [in] | hasDrm | - Drm enablement status |
| [in] | isLive | - Is Live |
| [in] | DrmType | - DRM Type |
| [in] | programStartTime | - Program/Availability start time |
| MediaMetadataEvent::getDuration | ( | ) | const |
| MediaMetadataEvent::getProgramStartTime | ( | ) | const |
Get Program/Availability Start Time.
Definition at line 354 of file AampEvent.cpp.
| void MediaMetadataEvent::addLanguage | ( | const std::string & | lang | ) |
Add a supported language.
| [in] | lang | - Supported language |
Definition at line 362 of file AampEvent.cpp.
| MediaMetadataEvent::getLanguages | ( | ) | const |
| MediaMetadataEvent::getLanguagesCount | ( | ) | const |
| void MediaMetadataEvent::addBitrate | ( | long | bitrate | ) |
Add a supported bitrate.
| [in] | bitrate | - Supported bitrate |
Definition at line 390 of file AampEvent.cpp.
| MediaMetadataEvent::getBitrates | ( | ) | const |
| MediaMetadataEvent::getBitratesCount | ( | ) | const |
| MediaMetadataEvent::getWidth | ( | ) | const |
| MediaMetadataEvent::getHeight | ( | ) | const |
| bool MediaMetadataEvent::hasDrm | ( | ) | const |
| MediaMetadataEvent::isLive | ( | ) | const |
| MediaMetadataEvent::getDrmType | ( | ) | const |
| void MediaMetadataEvent::addSupportedSpeed | ( | float | speed | ) |
Add a supported speed.
| [in] | speed | - Supported speed |
Definition at line 448 of file AampEvent.cpp.
| MediaMetadataEvent::getSupportedSpeeds | ( | ) | const |
Get Supported Speeds.
Definition at line 458 of file AampEvent.cpp.
| MediaMetadataEvent::getSupportedSpeedCount | ( | ) | const |
Get Supported Speed count.
Definition at line 468 of file AampEvent.cpp.
| MediaMetadataEvent::SetVideoMetaData | ( | float | frameRate, |
| VideoScanType | videoScanType, | ||
| int | aspectRatioWidth, | ||
| int | aspectRatioHeight, | ||
| const std::string & | videoCodec, | ||
| const std::string & | hdrType, | ||
| const std::string & | pcRating, | ||
| int | ssi | ||
| ) |
Sets additional metadata for video.
| [in] | mFrameRate | - video framerate |
| [in] | videoScanType | - Scan Type progressive/interlaced |
| [in] | aspectRatioWidth | - Aspect Ratio Width |
| [in] | aspectRatioHeight | - Aspect Ratio Height |
| [in] | strVideoCodec | - VideoCodec(v1) - E.g MPEG2. |
| [in] | strHdrType | - type of HDR being played, in example "DOLBY_VISION" |
| [in] | strPCRating | - Parental control rating json string object |
| [int] | ssi - Signal strength indicator 0-100 where 100 is a perfect signal. -1 indicates data not available |
Definition at line 497 of file AampEvent.cpp.
| void MediaMetadataEvent::SetAudioMetaData | ( | const std::string & | audioCodec, |
| const std::string & | mixType, | ||
| bool | isAtmos | ||
| ) |
Sets additional metadata for Audio.
Get Bitrates.
| [in] | strAudioCodec | - AudioCodec - E.g AC3. |
| [in] | strMixType | - AudioMixType - E.g STEREO. |
| [in] | iAtmos | - 1 - True if audio playing is Dolby Atmos, 0 false , -1 indicates data not available |
Definition at line 515 of file AampEvent.cpp.
|
inline |
Add a supported bitrate.
| [in] | bitrate | - Supported bitrate |
Definition at line 924 of file AampEvent.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
Asset duration in MS
Definition at line 749 of file AampEvent.h.
|
private |
Available languages
Definition at line 750 of file AampEvent.h.
|
private |
Available bitrates
Definition at line 751 of file AampEvent.h.
|
private |
Maximum video width
Definition at line 752 of file AampEvent.h.
|
private |
Maximum video height
Definition at line 753 of file AampEvent.h.
|
private |
Drm enabled
Definition at line 754 of file AampEvent.h.
|
private |
Supported playback speeds
Definition at line 755 of file AampEvent.h.
|
private |
Is Live
Definition at line 756 of file AampEvent.h.
|
private |
DRM type
Definition at line 757 of file AampEvent.h.
|
private |
Program/Availability start time
Definition at line 758 of file AampEvent.h.
|
private |
Parental control rating json string object
Definition at line 761 of file AampEvent.h.
|
private |
Signal strength indicator 0-100 where 100 is a perfect signal. -1 indicates data not available
Definition at line 762 of file AampEvent.h.
|
private |
FrameRate
Definition at line 764 of file AampEvent.h.
|
private |
Video Scan Type progressive/interlaced
Definition at line 765 of file AampEvent.h.
|
private |
Aspect Ratio Width
Definition at line 766 of file AampEvent.h.
|
private |
Aspect Ratio Height
Definition at line 767 of file AampEvent.h.
|
private |
VideoCodec - E.g MPEG2.
Definition at line 768 of file AampEvent.h.
|
private |
type of HDR being played, in example "DOLBY_VISION"
Definition at line 769 of file AampEvent.h.
|
private |
Available Audio bitrates
Definition at line 773 of file AampEvent.h.
|
private |
AudioCodec E.g AC3.
Definition at line 774 of file AampEvent.h.
|
private |
AudioMixType(- E.g STEREO.
Definition at line 775 of file AampEvent.h.
|
private |
Is Atmos : 1 - True if audio playing is Dolby Atmos, 0 false , -1 indicates data not available
Definition at line 776 of file AampEvent.h.