![]() |
RDK Documentation (Open Sourced RDK Components)
|
Player interface class for the JS pluggin. More...
#include <main_aamp.h>


Public Member Functions | |
| PlayerInstanceAAMP (StreamSink *streamSink=NULL, std::function< void(uint8_t *, int, int, int) > exportFrames=nullptr) | |
| PlayerInstanceAAMP Constructor. | |
| ~PlayerInstanceAAMP () | |
| PlayerInstanceAAMP Destructor. | |
| PlayerInstanceAAMP (const PlayerInstanceAAMP &other)=delete | |
| copy constructor More... | |
| PlayerInstanceAAMP & | operator= (const PlayerInstanceAAMP &other)=delete |
| To overload = operator for copying. More... | |
| void | Tune (const char *mainManifestUrl, const char *contentType, bool bFirstAttempt, bool bFinalAttempt, const char *traceUUID, bool audioDecoderStreamSync) |
| Tune to a URL. DEPRECATED! This is included for backwards compatibility with current Sky AS integration audioDecoderStreamSync is a broadcom-specific hack (for original xi6 POC build) - this doesn't belong in Tune API. | |
| void | Tune (const char *mainManifestUrl, bool autoPlay=true, const char *contentType=NULL, bool bFirstAttempt=true, bool bFinalAttempt=false, const char *traceUUID=NULL, bool audioDecoderStreamSync=true) |
| Tune to a URL. | |
| void | Stop (bool sendStateChangeEvent=true) |
| Stop playback and release resources. More... | |
| void | ResetConfiguration () |
| API to reset configuration across tunes for single player instance. More... | |
| void | SetRate (float rate, int overshootcorrection=0) |
| Set playback rate. More... | |
| void | PauseAt (double position) |
| Set PauseAt position. More... | |
| void | Seek (double secondsRelativeToTuneTime, bool keepPaused=false) |
| Seek to a time. More... | |
| void | SeekToLive (bool keepPaused=false) |
| Seek to live point. More... | |
| void | SetRateAndSeek (int rate, double secondsRelativeToTuneTime) |
| Seek to a time and playback with a new rate. More... | |
| void | SetSlowMotionPlayRate (float rate) |
| Set slow motion player speed. More... | |
| void | detach () |
| Soft stop the player instance. More... | |
| void | RegisterEvents (EventListener *eventListener) |
| Register event handler. More... | |
| void | UnRegisterEvents (EventListener *eventListener) |
| UnRegister event handler. More... | |
| void | SetVideoRectangle (int x, int y, int w, int h) |
| Set video rectangle. More... | |
| void | SetVideoZoom (VideoZoomMode zoom) |
| Set video zoom. More... | |
| void | SetVideoMute (bool muted) |
| Enable/ Disable Video. More... | |
| void | SetSubtitleMute (bool muted) |
| Enable/ Disable Subtitle. More... | |
| void | SetAudioVolume (int volume) |
| Set Audio Volume. More... | |
| void | SetLanguage (const char *language) |
| Set Audio language. More... | |
| void | SetSubscribedTags (std::vector< std::string > subscribedTags) |
| Set array of subscribed tags. More... | |
| void | SubscribeResponseHeaders (std::vector< std::string > responseHeaders) |
| Subscribe array of http response headers. More... | |
| void | LoadJS (void *context) |
| void | UnloadJS (void *context) |
| void | AddEventListener (AAMPEventType eventType, EventListener *eventListener) |
| Support multiple listeners for multiple event type. More... | |
| void | RemoveEventListener (AAMPEventType eventType, EventListener *eventListener) |
| Remove event listener for eventType. More... | |
| bool | IsLive () |
| To check whether the asset is live or not. More... | |
| bool | IsJsInfoLoggingEnabled () |
| Get jsinfo config value (default false) More... | |
| void | InsertAd (const char *url, double positionSeconds) |
| Schedule insertion of ad at given position. More... | |
| const char * | GetCurrentAudioLanguage () |
| Get current audio language. More... | |
| const char * | GetCurrentDRM () |
| Get current drm. More... | |
| void | AddPageHeaders (std::map< std::string, std::string > customHttpHeaders) |
| Applies the custom http headers for page (Injector bundle) received from the js layer. More... | |
| void | AddCustomHTTPHeader (std::string headerName, std::vector< std::string > headerValue, bool isLicenseHeader=false) |
| Add/Remove a custom HTTP header and value. More... | |
| void | SetLicenseServerURL (const char *url, DRMSystems type=eDRM_MAX_DRMSystems) |
| Set License Server URL. More... | |
| void | SetPreferredDRM (DRMSystems drmType) |
| Set Preferred DRM. More... | |
| DRMSystems | GetPreferredDRM () |
| Get Preferred DRM. More... | |
| void | SetStereoOnlyPlayback (bool bValue) |
| Set Stereo Only Playback. More... | |
| void | SetBulkTimedMetaReport (bool bValue) |
| Set Bulk TimedMetadata Reporting flag. More... | |
| void | SetRetuneForUnpairedDiscontinuity (bool bValue) |
| Set unpaired discontinuity retune flag. More... | |
| void | SetRetuneForGSTInternalError (bool bValue) |
| Set retune configuration for gstpipeline internal data stream error. More... | |
| void | SetAnonymousRequest (bool isAnonymous) |
| Indicates if session token has to be used with license request or not. More... | |
| void | SetAvgBWForABR (bool useAvgBW) |
| Indicates average BW to be used for ABR Profiling. More... | |
| void | SetPreCacheTimeWindow (int nTimeWindow) |
| SetPreCacheTimeWindow Function to Set PreCache Time. More... | |
| void | SetVODTrickplayFPS (int vodTrickplayFPS) |
| Set VOD Trickplay FPS. More... | |
| void | SetLinearTrickplayFPS (int linearTrickplayFPS) |
| Set Linear Trickplay FPS. More... | |
| void | SetLiveOffset (double liveoffset) |
| Set Live Offset. More... | |
| void | SetLiveOffset4K (double liveoffset) |
| Set Live Offset. More... | |
| void | SetStallErrorCode (int errorCode) |
| To set the error code to be used for playback stalled error. More... | |
| void | SetStallTimeout (int timeoutMS) |
| To set the timeout value to be used for playback stall detection. More... | |
| void | SetReportInterval (int reportInterval) |
| To set the Playback Position reporting interval. More... | |
| void | SetInitFragTimeoutRetryCount (int count) |
| To set the max retry attempts for init frag curl timeout failures. More... | |
| double | GetPlaybackPosition (void) |
| To get the current playback position. More... | |
| double | GetPlaybackDuration (void) |
| To get the current asset's duration. More... | |
| int | GetId (void) |
| PrivAAMPState | GetState (void) |
| To get the current AAMP state. More... | |
| long | GetVideoBitrate (void) |
| To get the bitrate of current video profile. More... | |
| void | SetVideoBitrate (long bitrate) |
| To set a preferred bitrate for video profile. More... | |
| long | GetAudioBitrate (void) |
| To get the bitrate of current audio profile. More... | |
| void | SetAudioBitrate (long bitrate) |
| To set a preferred bitrate for audio profile. More... | |
| int | GetVideoZoom (void) |
| To get video zoom mode. More... | |
| bool | GetVideoMute (void) |
| To get video mute status. More... | |
| int | GetAudioVolume (void) |
| To get the current audio volume. More... | |
| int | GetPlaybackRate (void) |
| To get the current playback rate. More... | |
| std::vector< long > | GetVideoBitrates (void) |
| To get the available video bitrates. More... | |
| std::string | GetManifest (void) |
| To get the available manifest. More... | |
| std::vector< long > | GetAudioBitrates (void) |
| To get the available audio bitrates. More... | |
| void | SetInitialBitrate (long bitrate) |
| To set the initial bitrate value. More... | |
| long | GetInitialBitrate (void) |
| To get the initial bitrate value. More... | |
| void | SetInitialBitrate4K (long bitrate4K) |
| To set the initial bitrate value for 4K assets. More... | |
| long | GetInitialBitrate4k (void) |
| To get the initial bitrate value for 4K assets. More... | |
| void | SetNetworkTimeout (double timeout) |
| To override default curl timeout for playlist/fragment downloads. More... | |
| void | SetManifestTimeout (double timeout) |
| Optionally override default HLS main manifest download timeout with app-specific value. More... | |
| void | SetPlaylistTimeout (double timeout) |
| Optionally override default HLS main manifest download timeout with app-specific value. More... | |
| void | SetDownloadBufferSize (int bufferSize) |
| To set the download buffer size value. More... | |
| void | SetNetworkProxy (const char *proxy) |
| To set the network proxy. More... | |
| void | SetLicenseReqProxy (const char *licenseProxy) |
| To set the proxy for license request. More... | |
| void | SetDownloadStallTimeout (long stallTimeout) |
| To set the curl stall timeout value. More... | |
| void | SetDownloadStartTimeout (long startTimeout) |
| To set the curl download start timeout. More... | |
| void | SetDownloadLowBWTimeout (long lowBWTimeout) |
| To set the curl download low bandwidth timeout value. More... | |
| void | SetPreferredSubtitleLanguage (const char *language) |
| Set preferred subtitle language. More... | |
| void | SetAlternateContents (const std::string &adBreakId, const std::string &adId, const std::string &url) |
| Setting the alternate contents' (Ads/blackouts) URL. More... | |
| void | SetParallelPlaylistDL (bool bValue) |
| Set parallel playlist download config value. More... | |
| void | ManageAsyncTuneConfig (const char *url) |
| Manage async tune configuration for specific contents. More... | |
| void | SetAsyncTuneConfig (bool bValue) |
| Set async tune configuration. More... | |
| void | SetParallelPlaylistRefresh (bool bValue) |
| Set parallel playlist download config value for linear. More... | |
| void | SetWesterosSinkConfig (bool bValue) |
| Set Westeros sink configuration. More... | |
| void | SetLicenseCaching (bool bValue) |
| Set license caching. More... | |
| void | SetOutputResolutionCheck (bool bValue) |
| Set Display resolution check for video profile filtering. More... | |
| void | SetMatchingBaseUrlConfig (bool bValue) |
| Set Matching BaseUrl Config Configuration. More... | |
| void | SetPropagateUriParameters (bool bValue) |
| to configure URI parameters for fragment downloads More... | |
| void | ApplyArtificialDownloadDelay (unsigned int DownloadDelayInMs) |
| to optionally configure simulated per-download network latency for negative testing More... | |
| void | SetSslVerifyPeerConfig (bool bValue) |
| Configure URI parameters. More... | |
| void | SetNewABRConfig (bool bValue) |
| Configure New ABR Enable/Disable. More... | |
| void | SetNewAdBreakerConfig (bool bValue) |
| Configure New AdBreaker Enable/Disable. More... | |
| std::string | GetAvailableVideoTracks () |
| Get available video tracks. More... | |
| void | SetVideoTracks (std::vector< long > bitrates) |
| Set video tracks. More... | |
| std::string | GetAvailableAudioTracks (bool allTrack=false) |
| Get available audio tracks. More... | |
| std::string | GetAvailableTextTracks (bool allTrack=false) |
| Get available text tracks. More... | |
| std::string | GetVideoRectangle () |
| Get the video window co-ordinates. More... | |
| void | SetAppName (std::string name) |
| Set the application name which has created PlayerInstanceAAMP, for logging purposes. More... | |
| void | SetPreferredLanguages (const char *languageList, const char *preferredRendition=NULL, const char *preferredType=NULL, const char *codecList=NULL, const char *labelList=NULL) |
| Set optional preferred language list. More... | |
| void | SetPreferredTextLanguages (const char *param) |
| Set optional preferred language list. More... | |
| void | SetAudioTrack (std::string language="", std::string rendition="", std::string type="", std::string codec="", unsigned int channel=0, std::string label="") |
| Set audio track. | |
| void | SetPreferredCodec (const char *codecList) |
| Set optional preferred codec list. More... | |
| void | SetPreferredLabels (const char *lableList) |
| Set optional preferred label list. More... | |
| void | SetPreferredRenditions (const char *renditionList) |
| Set optional preferred rendition list. More... | |
| const char * | GetPreferredLanguages () |
| Get current preferred language list. More... | |
| void | SetTuneEventConfig (int tuneEventType) |
| To set the vod-tune-event according to the player. More... | |
| void | EnableVideoRectangle (bool rectProperty) |
| Set video rectangle property. More... | |
| void | SetRampDownLimit (int limit) |
| Set profile ramp down limit. More... | |
| int | GetRampDownLimit (void) |
| Get profile ramp down limit. More... | |
| void | SetInitRampdownLimit (int limit) |
| Set Initial profile ramp down limit. More... | |
| void | SetMinimumBitrate (long bitrate) |
| Set minimum bitrate value. More... | |
| long | GetMinimumBitrate (void) |
| Get minimum bitrate value. More... | |
| void | SetMaximumBitrate (long bitrate) |
| Set maximum bitrate value. More... | |
| long | GetMaximumBitrate (void) |
| Get maximum bitrate value. More... | |
| void | SetSegmentInjectFailCount (int value) |
| Set retry limit on Segment injection failure. More... | |
| void | SetSegmentDecryptFailCount (int value) |
| Set retry limit on Segment drm decryption failure. More... | |
| void | SetInitialBufferDuration (int durationSec) |
| Set initial buffer duration in seconds. More... | |
| int | GetInitialBufferDuration (void) |
| Get initial buffer duration in seconds. More... | |
| void | SetNativeCCRendering (bool enable) |
| Enable/disable the native CC rendering feature. More... | |
| void | SetAudioTrack (int trackId) |
| Set audio track. | |
| int | GetAudioTrack () |
| Get current audio track index. More... | |
| std::string | GetAudioTrackInfo () |
| Get current audio track index. More... | |
| std::string | GetTextTrackInfo () |
| Get current audio track index. More... | |
| std::string | GetPreferredAudioProperties () |
| Get preferred audio prioperties. More... | |
| std::string | GetPreferredTextProperties () |
| Get preferred text prioperties. More... | |
| void | SetTextTrack (int trackId, char *ccData=NULL) |
| Set text track. More... | |
| int | GetTextTrack () |
| Get current text track index. More... | |
| void | SetCCStatus (bool enabled) |
| Set CC visibility on/off. More... | |
| bool | GetCCStatus (void) |
| Get CC visibility on/off. More... | |
| void | SetTextStyle (const std::string &options) |
| Set style options for text track rendering. More... | |
| std::string | GetTextStyle () |
| Get style options for text track rendering. More... | |
| void | SetLanguageFormat (LangCodePreference preferredFormat, bool useRole=false) |
| Set Language preferred Format. More... | |
| void | SetCEAFormat (int format) |
| Set the CEA format for force setting. More... | |
| void | SetSessionToken (std::string sessionToken) |
| Set the session token for player. More... | |
| void | SetMaxPlaylistCacheSize (int cacheSize) |
| Set Maximum Cache Size for storing playlist. More... | |
| void | EnableSeekableRange (bool enabled) |
| Enable seekable range values in progress event. More... | |
| void | SetReportVideoPTS (bool enabled) |
| Enable video PTS reporting in progress event. More... | |
| void | SetDisable4K (bool value) |
| Disable 4K Support in player. More... | |
| void | DisableContentRestrictions (long grace, long time, bool eventChange) |
| Disable Content Restrictions - unlock. More... | |
| void | EnableContentRestrictions () |
| Enable Content Restrictions - lock. More... | |
| void | AsyncStartStop () |
| Enable/Disable async operation. More... | |
| void | PersistBitRateOverSeek (bool value) |
| Enable/disable configuration to persist ABR profile over seek/SAP. More... | |
| std::string | GetAvailableThumbnailTracks (void) |
| To get the available bitrates for thumbnails. More... | |
| bool | SetThumbnailTrack (int thumbIndex) |
| To set a preferred bitrate for thumbnail profile. More... | |
| std::string | GetThumbnails (double sduration, double eduration) |
| To get preferred thumbnails for the duration. More... | |
| void | SetPausedBehavior (int behavior) |
| To set preferred paused state behavior. More... | |
| bool | InitAAMPConfig (char *jsonStr) |
| InitAAMPConfig - Initialize the media player session with json config. | |
| std::string | GetAAMPConfig () |
| GetAAMPConfig - GetAamp Config as JSON string. | |
| void | SetUseAbsoluteTimeline (bool configState) |
| To set UseAbsoluteTimeline for DASH. More... | |
| void | XRESupportedTune (bool xreSupported) |
| To set whether the JS playback session is from XRE or not. More... | |
| void | EnableAsyncOperation () |
| Enable async operation and initialize resources. More... | |
| void | SetRepairIframes (bool configState) |
| To set the repairIframes flag. More... | |
| void | SetAuxiliaryLanguage (const std::string &language) |
| Set auxiliary language. More... | |
| void | SetLicenseCustomData (const char *customData) |
| Set License Custom Data. More... | |
| void | SetContentProtectionDataUpdateTimeout (int timeout) |
| To set default timeout for Dynamic ContentProtectionDataUpdate on Key Rotation. More... | |
| void | ProcessContentProtectionDataConfig (const char *jsonbuffer) |
| void | SetRuntimeDRMConfigSupport (bool DynamicDRMSupported) |
| To set Dynamic DRM feature by Application. | |
| bool | IsOOBCCRenderingSupported () |
| std::string | GetPlaybackStats () |
| Get playback statistics formated for partner apps. More... | |
Data Fields | |
| class PrivateInstanceAAMP * | aamp |
| std::shared_ptr< PrivateInstanceAAMP > | sp_aamp |
| AampConfig | mConfig |
Private Member Functions | |
| bool | IsValidRate (int rate) |
| Check given rate is valid. More... | |
| void | TuneInternal (const char *mainManifestUrl, bool autoPlay, const char *contentType, bool bFirstAttempt, bool bFinalAttempt, const char *traceUUID, bool audioDecoderStreamSync) |
| Tune to a URL. More... | |
| void | SetRateInternal (float rate, int overshootcorrection) |
| Set playback rate - Internal function. More... | |
| void | PauseAtInternal (double secondsRelativeToTuneTime) |
| Set PauseAt position - Internal function. More... | |
| void | SeekInternal (double secondsRelativeToTuneTime, bool keepPaused) |
| Seek to a time - Internal function. More... | |
| void | SetAudioTrackInternal (std::string language, std::string rendition, std::string codec, std::string type, unsigned int channel, std::string label) |
| Set audio track by audio parameters like language , rendition, codec etc.. More... | |
| void | SetAuxiliaryLanguageInternal (const std::string &language) |
| Set auxiluerry track language. More... | |
| void | SetTextTrackInternal (int trackId, char *data) |
| Set text track by Id. More... | |
| void | StopInternal (bool sendStateChangeEvent) |
| Stop playback and release resources. More... | |
Private Attributes | |
| StreamSink * | mInternalStreamSink |
| void * | mJSBinding_DL |
| bool | mAsyncRunning |
| bool | mAsyncTuneEnabled |
| AampScheduler | mScheduler |
Static Private Attributes | |
| static std::mutex | mPrvAampMtx |
Player interface class for the JS pluggin.
Definition at line 692 of file main_aamp.h.
|
delete |
copy constructor
| other | object to copy |
|
delete |
To overload = operator for copying.
| other | object to copy |
| void PlayerInstanceAAMP::Stop | ( | bool | sendStateChangeEvent = true | ) |
Stop playback and release resources.
| [in] | sendStateChangeEvent | - true if state change events need to be sent for Stop operation |
Definition at line 282 of file main_aamp.cpp.
| void PlayerInstanceAAMP::ResetConfiguration | ( | ) |
API to reset configuration across tunes for single player instance.
Definition at line 264 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetRate | ( | float | rate, |
| int | overshootcorrection = 0 |
||
| ) |
Set playback rate.
| [in] | rate | - Rate of playback. |
| [in] | overshootcorrection | - overshoot correction in milliseconds. |
Definition at line 561 of file main_aamp.cpp.
| void PlayerInstanceAAMP::PauseAt | ( | double | position | ) |
Set PauseAt position.
Any subsequent call to this method will override the previous call.
| [in] | position | - Absolute position within the asset for VOD or relative position from first tune command for linear content; a negative value would cancel any previous PauseAt call. |
Definition at line 837 of file main_aamp.cpp.
| void PlayerInstanceAAMP::Seek | ( | double | secondsRelativeToTuneTime, |
| bool | keepPaused = false |
||
| ) |
Seek to a time.
| [in] | secondsRelativeToTuneTime | - Seek position for VOD, relative position from first tune command. |
| [in] | keepPaused | - set true if want to keep paused state after seek |
Definition at line 971 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SeekToLive | ( | bool | keepPaused = false | ) |
Seek to live point.
| [in] | keepPaused | - set true if want to keep paused state after seek |
Definition at line 1144 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetRateAndSeek | ( | int | rate, |
| double | secondsRelativeToTuneTime | ||
| ) |
Seek to a time and playback with a new rate.
| [in] | rate | - Rate of playback. |
| [in] | secondsRelativeToTuneTime | - Seek position for VOD, relative position from first tune command. |
Definition at line 1202 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetSlowMotionPlayRate | ( | float | rate | ) |
Set slow motion player speed.
| [in] | rate | - Rate of playback. |
Definition at line 1167 of file main_aamp.cpp.
| void PlayerInstanceAAMP::detach | ( | ) |
| void PlayerInstanceAAMP::RegisterEvents | ( | EventListener * | eventListener | ) |
Register event handler.
| [in] | eventListener | - pointer to implementation of EventListener to receive events. |
Definition at line 403 of file main_aamp.cpp.
| void PlayerInstanceAAMP::UnRegisterEvents | ( | EventListener * | eventListener | ) |
UnRegister event handler.
| [in] | eventListener | - pointer to implementation of EventListener to receive events. |
Definition at line 411 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetVideoRectangle | ( | int | x, |
| int | y, | ||
| int | w, | ||
| int | h | ||
| ) |
Set video rectangle.
| [in] | x | - horizontal start position. |
| [in] | y | - vertical start position. |
| [in] | w | - width. |
| [in] | h | - height. |
Definition at line 1270 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetVideoZoom | ( | VideoZoomMode | zoom | ) |
Set video zoom.
| [in] | zoom | - zoom mode. |
Definition at line 1282 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetVideoMute | ( | bool | muted | ) |
Enable/ Disable Video.
| [in] | muted | - true to disable video, false to enable video. |
Definition at line 1303 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetSubtitleMute | ( | bool | muted | ) |
Enable/ Disable Subtitle.
Enable/ Disable Subtitles.
| [in] | muted | - true to disable subtitle, false to enable subtitle. |
| muted | - true to disable subtitles, false to enable subtitles. |
Definition at line 1338 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetAudioVolume | ( | int | volume | ) |
Set Audio Volume.
| [in] | volume | - Minimum 0, maximum 100. |
| volume | - Minimum 0, maximum 100. |
Definition at line 1361 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetLanguage | ( | const char * | language | ) |
Set Audio language.
| [in] | language | - Language of audio track. |
Definition at line 1389 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetSubscribedTags | ( | std::vector< std::string > | subscribedTags | ) |
Set array of subscribed tags.
| [in] | subscribedTags | - Array of subscribed tags. |
Definition at line 1415 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SubscribeResponseHeaders | ( | std::vector< std::string > | responseHeaders | ) |
Subscribe array of http response headers.
| responseHeaders | - Array of response headers. |
Definition at line 1430 of file main_aamp.cpp.
| void PlayerInstanceAAMP::LoadJS | ( | void * | context | ) |
| [in] | context | - JS context. |
Definition at line 49 of file FakePlayerInstanceAamp.cpp.
| void PlayerInstanceAAMP::UnloadJS | ( | void * | context | ) |
| [in] | context | - JS context. |
Definition at line 50 of file FakePlayerInstanceAamp.cpp.
| void PlayerInstanceAAMP::AddEventListener | ( | AAMPEventType | eventType, |
| EventListener * | eventListener | ||
| ) |
Support multiple listeners for multiple event type.
| [in] | eventType | - type of event. |
| [in] | eventListener | - listener for the eventType. |
Definition at line 1483 of file main_aamp.cpp.
| void PlayerInstanceAAMP::RemoveEventListener | ( | AAMPEventType | eventType, |
| EventListener * | eventListener | ||
| ) |
Remove event listener for eventType.
| [in] | eventType | - type of event. |
| [in] | eventListener | - listener to be removed for the eventType. |
Definition at line 1493 of file main_aamp.cpp.
| bool PlayerInstanceAAMP::IsLive | ( | ) |
To check whether the asset is live or not.
Definition at line 1503 of file main_aamp.cpp.
| PlayerInstanceAAMP::IsJsInfoLoggingEnabled | ( | ) |
Get jsinfo config value (default false)
Definition at line 1514 of file main_aamp.cpp.
| void PlayerInstanceAAMP::InsertAd | ( | const char * | url, |
| double | positionSeconds | ||
| ) |
Schedule insertion of ad at given position.
| [in] | url | - HTTP/HTTPS url of the ad |
| [in] | positionSeconds | - position at which ad shall be inserted |
Definition at line 53 of file FakePlayerInstanceAamp.cpp.
| const char * PlayerInstanceAAMP::GetCurrentAudioLanguage | ( | ) |
Get current audio language.
Definition at line 1523 of file main_aamp.cpp.
| const char * PlayerInstanceAAMP::GetCurrentDRM | ( | ) |
| void PlayerInstanceAAMP::AddPageHeaders | ( | std::map< std::string, std::string > | customHttpHeaders | ) |
Applies the custom http headers for page (Injector bundle) received from the js layer.
| customHttpHeaders | - customHttpHeaders map of custom http headers |
Definition at line 1563 of file main_aamp.cpp.
| void PlayerInstanceAAMP::AddCustomHTTPHeader | ( | std::string | headerName, |
| std::vector< std::string > | headerValue, | ||
| bool | isLicenseHeader = false |
||
| ) |
Add/Remove a custom HTTP header and value.
| [in] | headerName | - Name of custom HTTP header |
| [in] | headerValue | - Value to be pased along with HTTP header. |
| [in] | isLicenseHeader | - true if header is to be used for license HTTP requests |
Definition at line 1579 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetLicenseServerURL | ( | const char * | url, |
| DRMSystems | type = eDRM_MAX_DRMSystems |
||
| ) |
Set License Server URL.
| [in] | url | - URL of the server to be used for license requests |
| [in] | type | - DRM Type(PR/WV) for which the server URL should be used, global by default |
Definition at line 1590 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetPreferredDRM | ( | DRMSystems | drmType | ) |
Set Preferred DRM.
| [in] | drmType | - Preferred DRM type |
Definition at line 2027 of file main_aamp.cpp.
| DRMSystems PlayerInstanceAAMP::GetPreferredDRM | ( | ) |
| void PlayerInstanceAAMP::SetStereoOnlyPlayback | ( | bool | bValue | ) |
Set Stereo Only Playback.
| [in] | bValue | - disable EC3/ATMOS if the value is true |
Definition at line 2044 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetBulkTimedMetaReport | ( | bool | bValue | ) |
Set Bulk TimedMetadata Reporting flag.
| [in] | bValue | - if true Bulk event reporting enabled |
Definition at line 2079 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetRetuneForUnpairedDiscontinuity | ( | bool | bValue | ) |
Set unpaired discontinuity retune flag.
| [in] | bValue | - true if unpaired discontinuity retune set |
Definition at line 2088 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetRetuneForGSTInternalError | ( | bool | bValue | ) |
Set retune configuration for gstpipeline internal data stream error.
| [in] | bValue | - true if gst internal error retune set |
Definition at line 2097 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetAnonymousRequest | ( | bool | isAnonymous | ) |
Indicates if session token has to be used with license request or not.
| [in] | isAnonymous | - True if session token should be blank and false otherwise. |
Definition at line 1620 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetAvgBWForABR | ( | bool | useAvgBW | ) |
Indicates average BW to be used for ABR Profiling.
| useAvgBW | - Flag for true / false |
Definition at line 1629 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetPreCacheTimeWindow | ( | int | nTimeWindow | ) |
SetPreCacheTimeWindow Function to Set PreCache Time.
| nTimeWindow | Time in minutes - Max PreCache Time |
Definition at line 1637 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetVODTrickplayFPS | ( | int | vodTrickplayFPS | ) |
Set VOD Trickplay FPS.
| [in] | vodTrickplayFPS | - FPS to be used for VOD Trickplay |
Definition at line 1646 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetLinearTrickplayFPS | ( | int | linearTrickplayFPS | ) |
Set Linear Trickplay FPS.
| [in] | linearTrickplayFPS | - FPS to be used for Linear Trickplay |
Definition at line 1655 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetLiveOffset | ( | double | liveoffset | ) |
Set Live Offset.
| [in] | liveoffset- | Live Offset |
Definition at line 1664 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetLiveOffset4K | ( | double | liveoffset | ) |
Set Live Offset.
| [in] | liveoffset- | Live Offset |
Definition at line 1674 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetStallErrorCode | ( | int | errorCode | ) |
To set the error code to be used for playback stalled error.
| [in] | errorCode | - error code for playback stall errors. |
Definition at line 1684 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetStallTimeout | ( | int | timeoutMS | ) |
To set the timeout value to be used for playback stall detection.
| [in] | timeoutMS | - timeout in milliseconds for playback stall detection. |
Definition at line 1693 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetReportInterval | ( | int | reportInterval | ) |
To set the Playback Position reporting interval.
| reportInterval | - playback reporting interval in milliSeconds. |
Definition at line 1702 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetInitFragTimeoutRetryCount | ( | int | count | ) |
To set the max retry attempts for init frag curl timeout failures.
| count | - max attempt for timeout retry count |
Definition at line 1718 of file main_aamp.cpp.
| double PlayerInstanceAAMP::GetPlaybackPosition | ( | void | ) |
To get the current playback position.
Definition at line 1729 of file main_aamp.cpp.
| double PlayerInstanceAAMP::GetPlaybackDuration | ( | void | ) |
To get the current asset's duration.
Definition at line 1738 of file main_aamp.cpp.
| PlayerInstanceAAMP::GetId | ( | void | ) |
Definition at line 1750 of file main_aamp.cpp.
| PlayerInstanceAAMP::GetState | ( | void | ) |
To get the current AAMP state.
Definition at line 1765 of file main_aamp.cpp.
| long PlayerInstanceAAMP::GetVideoBitrate | ( | void | ) |
To get the bitrate of current video profile.
Definition at line 1787 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetVideoBitrate | ( | long | bitrate | ) |
To set a preferred bitrate for video profile.
| [in] | bitrate | preferred bitrate for video profile |
Definition at line 1805 of file main_aamp.cpp.
| long PlayerInstanceAAMP::GetAudioBitrate | ( | void | ) |
To get the bitrate of current audio profile.
Definition at line 1826 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetAudioBitrate | ( | long | bitrate | ) |
To set a preferred bitrate for audio profile.
| [in] | bitrate | preferred bitrate for audio profile |
Definition at line 1844 of file main_aamp.cpp.
| int PlayerInstanceAAMP::GetVideoZoom | ( | void | ) |
| bool PlayerInstanceAAMP::GetVideoMute | ( | void | ) |
| int PlayerInstanceAAMP::GetAudioVolume | ( | void | ) |
| int PlayerInstanceAAMP::GetPlaybackRate | ( | void | ) |
To get the current playback rate.
Definition at line 1884 of file main_aamp.cpp.
| std::vector< long > PlayerInstanceAAMP::GetVideoBitrates | ( | void | ) |
To get the available video bitrates.
Definition at line 1893 of file main_aamp.cpp.
| std::string PlayerInstanceAAMP::GetManifest | ( | void | ) |
To get the available manifest.
Definition at line 1911 of file main_aamp.cpp.
| std::vector< long > PlayerInstanceAAMP::GetAudioBitrates | ( | void | ) |
To get the available audio bitrates.
Definition at line 1935 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetInitialBitrate | ( | long | bitrate | ) |
To set the initial bitrate value.
| [in] | bitrate | initial bitrate to be selected |
Definition at line 1953 of file main_aamp.cpp.
| long PlayerInstanceAAMP::GetInitialBitrate | ( | void | ) |
To get the initial bitrate value.
Definition at line 1962 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetInitialBitrate4K | ( | long | bitrate4K | ) |
To set the initial bitrate value for 4K assets.
| [in] | bitrate4K | initial bitrate to be selected for 4K assets. |
Definition at line 1972 of file main_aamp.cpp.
| long PlayerInstanceAAMP::GetInitialBitrate4k | ( | void | ) |
To get the initial bitrate value for 4K assets.
Definition at line 1981 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetNetworkTimeout | ( | double | timeout | ) |
To override default curl timeout for playlist/fragment downloads.
| [in] | timeout | preferred timeout value |
Definition at line 1991 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetManifestTimeout | ( | double | timeout | ) |
Optionally override default HLS main manifest download timeout with app-specific value.
| [in] | timeout | preferred timeout value |
Definition at line 2000 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetPlaylistTimeout | ( | double | timeout | ) |
Optionally override default HLS main manifest download timeout with app-specific value.
| [in] | timeout | preferred timeout value |
Definition at line 2009 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetDownloadBufferSize | ( | int | bufferSize | ) |
To set the download buffer size value.
| [in] | bufferSize | preferred download buffer size |
Definition at line 2018 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetNetworkProxy | ( | const char * | proxy | ) |
To set the network proxy.
| [in] | proxy | network proxy to use |
Definition at line 2115 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetLicenseReqProxy | ( | const char * | licenseProxy | ) |
To set the proxy for license request.
| [in] | licenseProxy | proxy to use for license request |
Definition at line 2124 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetDownloadStallTimeout | ( | long | stallTimeout | ) |
To set the curl stall timeout value.
| [in] | stallTimeout | curl stall timeout value |
Definition at line 2133 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetDownloadStartTimeout | ( | long | startTimeout | ) |
To set the curl download start timeout.
| [in] | startTimeout | curl download start timeout |
Definition at line 2145 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetDownloadLowBWTimeout | ( | long | lowBWTimeout | ) |
To set the curl download low bandwidth timeout value.
| [in] | lowBWTimeout | curl download low bandwidth timeout |
Definition at line 2157 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetPreferredSubtitleLanguage | ( | const char * | language | ) |
Set preferred subtitle language.
| [in] | language | - Language of text track. |
Definition at line 2169 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetAlternateContents | ( | const std::string & | adBreakId, |
| const std::string & | adId, | ||
| const std::string & | url | ||
| ) |
Setting the alternate contents' (Ads/blackouts) URL.
| [in] | adBreakId | Adbreak's unique identifier. |
| [in] | adId | Individual Ad's id |
| [in] | url | Ad URL |
Definition at line 2106 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetParallelPlaylistDL | ( | bool | bValue | ) |
Set parallel playlist download config value.
| [in] | bValue | - true if a/v playlist to be downloaded in parallel |
Definition at line 2192 of file main_aamp.cpp.
| void PlayerInstanceAAMP::ManageAsyncTuneConfig | ( | const char * | url | ) |
Manage async tune configuration for specific contents.
| [in] | url | - main manifest url |
Definition at line 2760 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetAsyncTuneConfig | ( | bool | bValue | ) |
Set async tune configuration.
| [in] | bValue | - true if async tune enabled |
Definition at line 2773 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetParallelPlaylistRefresh | ( | bool | bValue | ) |
Set parallel playlist download config value for linear.
| [in] | bValue | - true if a/v playlist to be downloaded in parallel |
Definition at line 2201 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetWesterosSinkConfig | ( | bool | bValue | ) |
Set Westeros sink configuration.
| [in] | bValue | - true if westeros sink enabled |
Definition at line 2210 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetLicenseCaching | ( | bool | bValue | ) |
Set license caching.
| [in] | bValue | - true/false to enable/disable license caching |
Definition at line 2218 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetOutputResolutionCheck | ( | bool | bValue | ) |
Set Display resolution check for video profile filtering.
| [in] | bValue | - true/false to enable/disable profile filtering by display resoluton |
Definition at line 2227 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetMatchingBaseUrlConfig | ( | bool | bValue | ) |
Set Matching BaseUrl Config Configuration.
| [in] | bValue | - true if Matching BaseUrl enabled |
Definition at line 2235 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetPropagateUriParameters | ( | bool | bValue | ) |
to configure URI parameters for fragment downloads
| [in] | bValue | - default value: true |
Definition at line 2254 of file main_aamp.cpp.
| void PlayerInstanceAAMP::ApplyArtificialDownloadDelay | ( | unsigned int | DownloadDelayInMs | ) |
to optionally configure simulated per-download network latency for negative testing
| [in] | DownloadDelayInMs | - default value: zero |
Definition at line 2262 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetSslVerifyPeerConfig | ( | bool | bValue | ) |
Configure URI parameters.
| [in] | bValue | - default value: false |
Definition at line 2273 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetNewABRConfig | ( | bool | bValue | ) |
Configure New ABR Enable/Disable.
| [in] | bValue | - true if new ABR enabled |
Definition at line 2243 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetNewAdBreakerConfig | ( | bool | bValue | ) |
Configure New AdBreaker Enable/Disable.
| [in] | bValue | - true if new AdBreaker enabled |
Definition at line 2400 of file main_aamp.cpp.
| std::string PlayerInstanceAAMP::GetAvailableVideoTracks | ( | ) |
Get available video tracks.
Definition at line 2410 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetVideoTracks | ( | std::vector< long > | bitrates | ) |
Set video tracks.
| [in] | bitrate | - video bitrate list |
Definition at line 2420 of file main_aamp.cpp.
| std::string PlayerInstanceAAMP::GetAvailableAudioTracks | ( | bool | allTrack = false | ) |
Get available audio tracks.
Definition at line 2428 of file main_aamp.cpp.
| std::string PlayerInstanceAAMP::GetAvailableTextTracks | ( | bool | allTrack = false | ) |
Get available text tracks.
Definition at line 2460 of file main_aamp.cpp.
| std::string PlayerInstanceAAMP::GetVideoRectangle | ( | ) |
Get the video window co-ordinates.
Definition at line 2470 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetAppName | ( | std::string | name | ) |
Set the application name which has created PlayerInstanceAAMP, for logging purposes.
Definition at line 2480 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetPreferredLanguages | ( | const char * | languageList, |
| const char * | preferredRendition = NULL, |
||
| const char * | preferredType = NULL, |
||
| const char * | codecList = NULL, |
||
| const char * | labelList = NULL |
||
| ) |
Set optional preferred language list.
| [in] | languageList | - string with comma-delimited language list in ISO-639 from most to least preferred: "lang1,lang2". Set NULL to clear current list. |
| [in] | preferredRendition | - preferred rendition from role |
| [in] | preferredType | - preferred accessibility type |
| [in] | codecList | - string with comma-delimited codec list from most to least preferred: "codec1,codec2". Set NULL to clear current list. |
| [in] | labelList | - string with comma-delimited label list from most to least preferred: "label1,label2". Set NULL to clear current list. |
Definition at line 2363 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetPreferredTextLanguages | ( | const char * | param | ) |
Set optional preferred language list.
| [in] | languageList | - string with comma-delimited language list in ISO-639 |
Definition at line 2371 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetPreferredCodec | ( | const char * | codecList | ) |
Set optional preferred codec list.
| [in] | codecList | - string with array with codec list |
Definition at line 2321 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetPreferredLabels | ( | const char * | lableList | ) |
Set optional preferred label list.
| [in] | lableList | - string with array with label list |
Definition at line 2329 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetPreferredRenditions | ( | const char * | renditionList | ) |
Set optional preferred rendition list.
| [in] | renditionList | - string with comma-delimited rendition list in ISO-639 from most to least preferred. Set NULL to clear current list. |
Definition at line 2337 of file main_aamp.cpp.
| const char * PlayerInstanceAAMP::GetPreferredLanguages | ( | ) |
Get current preferred language list.
Definition at line 2387 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetTuneEventConfig | ( | int | tuneEventType | ) |
To set the vod-tune-event according to the player.
| [in] | tuneEventType | preferred tune event type |
Definition at line 2498 of file main_aamp.cpp.
| void PlayerInstanceAAMP::EnableVideoRectangle | ( | bool | rectProperty | ) |
Set video rectangle property.
| [in] | rectProperty | video rectangle property |
Definition at line 2506 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetRampDownLimit | ( | int | limit | ) |
| int PlayerInstanceAAMP::GetRampDownLimit | ( | void | ) |
Get profile ramp down limit.
Definition at line 470 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetInitRampdownLimit | ( | int | limit | ) |
| void PlayerInstanceAAMP::SetMinimumBitrate | ( | long | bitrate | ) |
| long PlayerInstanceAAMP::GetMinimumBitrate | ( | void | ) |
Get minimum bitrate value.
Definition at line 511 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetMaximumBitrate | ( | long | bitrate | ) |
| long PlayerInstanceAAMP::GetMaximumBitrate | ( | void | ) |
| void PlayerInstanceAAMP::SetSegmentInjectFailCount | ( | int | value | ) |
Set retry limit on Segment injection failure.
Definition at line 419 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetSegmentDecryptFailCount | ( | int | value | ) |
Set retry limit on Segment drm decryption failure.
Definition at line 427 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetInitialBufferDuration | ( | int | durationSec | ) |
| int PlayerInstanceAAMP::GetInitialBufferDuration | ( | void | ) |
Get initial buffer duration in seconds.
Definition at line 444 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetNativeCCRendering | ( | bool | enable | ) |
Enable/disable the native CC rendering feature.
| [in] | enable | - true for native CC rendering on |
Definition at line 2488 of file main_aamp.cpp.
| int PlayerInstanceAAMP::GetAudioTrack | ( | ) |
Get current audio track index.
Definition at line 2556 of file main_aamp.cpp.
| std::string PlayerInstanceAAMP::GetAudioTrackInfo | ( | ) |
Get current audio track index.
Definition at line 2438 of file main_aamp.cpp.
| std::string PlayerInstanceAAMP::GetTextTrackInfo | ( | ) |
Get current audio track index.
Definition at line 2448 of file main_aamp.cpp.
| std::string PlayerInstanceAAMP::GetPreferredAudioProperties | ( | ) |
| std::string PlayerInstanceAAMP::GetPreferredTextProperties | ( | ) |
Get preferred text prioperties.
Definition at line 2355 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetTextTrack | ( | int | trackId, |
| char * | ccData = NULL |
||
| ) |
Set text track.
| [in] | trackId | - index of text track in available track list |
| [in] | ccData | - subtitle data from application. |
Definition at line 2566 of file main_aamp.cpp.
| int PlayerInstanceAAMP::GetTextTrack | ( | ) |
Get current text track index.
Definition at line 2610 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetCCStatus | ( | bool | enabled | ) |
Set CC visibility on/off.
| [in] | enabled | - true for CC on, false otherwise |
Definition at line 2620 of file main_aamp.cpp.
| bool PlayerInstanceAAMP::GetCCStatus | ( | void | ) |
Get CC visibility on/off.
Definition at line 2630 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetTextStyle | ( | const std::string & | options | ) |
Set style options for text track rendering.
| [in] | options | - JSON formatted style options |
Definition at line 2638 of file main_aamp.cpp.
| std::string PlayerInstanceAAMP::GetTextStyle | ( | ) |
Get style options for text track rendering.
Definition at line 2648 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetLanguageFormat | ( | LangCodePreference | preferredFormat, |
| bool | useRole = false |
||
| ) |
Set Language preferred Format.
| [in] | preferredFormat | - one of LangCodePreference |
| [in] | useRole | - if enabled, the language in format <lang>-<role> if <role> attribute available in stream |
Definition at line 480 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetCEAFormat | ( | int | format | ) |
Set the CEA format for force setting.
| [in] | format | - 0 for 608, 1 for 708 |
Definition at line 2667 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetSessionToken | ( | std::string | sessionToken | ) |
| void PlayerInstanceAAMP::SetMaxPlaylistCacheSize | ( | int | cacheSize | ) |
Set Maximum Cache Size for storing playlist.
| cacheSize | size of cache to store |
Definition at line 454 of file main_aamp.cpp.
| void PlayerInstanceAAMP::EnableSeekableRange | ( | bool | enabled | ) |
Enable seekable range values in progress event.
| [in] | enabled | - true if enabled |
Definition at line 2724 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetReportVideoPTS | ( | bool | enabled | ) |
Enable video PTS reporting in progress event.
| [in] | enabled | - true if enabled |
Definition at line 2733 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetDisable4K | ( | bool | value | ) |
Disable 4K Support in player.
| [in] | value | - disabled if true |
Definition at line 2069 of file main_aamp.cpp.
| void PlayerInstanceAAMP::DisableContentRestrictions | ( | long | grace, |
| long | time, | ||
| bool | eventChange | ||
| ) |
Disable Content Restrictions - unlock.
| [in] | grace | - seconds from current time, grace period, grace = -1 will allow an unlimited grace period |
| [in] | time | - seconds from current time,time till which the channel need to be kept unlocked |
| [in] | eventChange | - disable restriction handling till next program event boundary |
Definition at line 2742 of file main_aamp.cpp.
| void PlayerInstanceAAMP::EnableContentRestrictions | ( | ) |
| void PlayerInstanceAAMP::AsyncStartStop | ( | ) |
| void PlayerInstanceAAMP::PersistBitRateOverSeek | ( | bool | value | ) |
Enable/disable configuration to persist ABR profile over seek/SAP.
| [in] | value | - To enable/disable configuration |
Definition at line 2808 of file main_aamp.cpp.
| std::string PlayerInstanceAAMP::GetAvailableThumbnailTracks | ( | void | ) |
To get the available bitrates for thumbnails.
Definition at line 2678 of file main_aamp.cpp.
| bool PlayerInstanceAAMP::SetThumbnailTrack | ( | int | thumbIndex | ) |
To set a preferred bitrate for thumbnail profile.
| [in] | thumbIndex | preferred bitrate for thumbnail profile |
Definition at line 2687 of file main_aamp.cpp.
| std::string PlayerInstanceAAMP::GetThumbnails | ( | double | sduration, |
| double | eduration | ||
| ) |
To get preferred thumbnails for the duration.
| [in] | eduration | duration for thumbnails |
Definition at line 2703 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetPausedBehavior | ( | int | behavior | ) |
To set preferred paused state behavior.
| [in] | behavior | paused behavior |
Definition at line 2850 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetUseAbsoluteTimeline | ( | bool | configState | ) |
To set UseAbsoluteTimeline for DASH.
| [in] | configState | bool enable/disable configuration |
Definition at line 2865 of file main_aamp.cpp.
| void PlayerInstanceAAMP::XRESupportedTune | ( | bool | xreSupported | ) |
To set whether the JS playback session is from XRE or not.
| [in] | xreSupported | bool On/Off |
Definition at line 2935 of file main_aamp.cpp.
| void PlayerInstanceAAMP::EnableAsyncOperation | ( | ) |
Enable async operation and initialize resources.
Definition at line 143 of file FakePlayerInstanceAamp.cpp.
| void PlayerInstanceAAMP::SetRepairIframes | ( | bool | configState | ) |
To set the repairIframes flag.
| [in] | configState | bool enable/disable configuration |
Definition at line 2875 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetAuxiliaryLanguage | ( | const std::string & | language | ) |
Set auxiliary language.
| [in] | language | - auxiliary language |
Definition at line 2944 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetLicenseCustomData | ( | const char * | customData | ) |
Set License Custom Data.
| [in] | customData | - custom data string to be passed to the license server. |
Definition at line 3007 of file main_aamp.cpp.
| void PlayerInstanceAAMP::SetContentProtectionDataUpdateTimeout | ( | int | timeout | ) |
To set default timeout for Dynamic ContentProtectionDataUpdate on Key Rotation.
To set the dynamic drm update on key rotation timeout value.
| [in] | preferred | timeout value |
Definition at line 3163 of file main_aamp.cpp.
| void PlayerInstanceAAMP::ProcessContentProtectionDataConfig | ( | const char * | jsonbuffer | ) |
| jsonbuffer | Received DRM config for content protection data update event |
Definition at line 3026 of file main_aamp.cpp.
| PlayerInstanceAAMP::IsOOBCCRenderingSupported | ( | ) |
Definition at line 3183 of file main_aamp.cpp.
| std::string PlayerInstanceAAMP::GetPlaybackStats | ( | ) |
Get playback statistics formated for partner apps.
Definition at line 3016 of file main_aamp.cpp.
|
private |
Check given rate is valid.
| [in] | rate | - Rate of playback. |
| return | true if the given rate is valid. |
Definition at line 547 of file main_aamp.cpp.
|
private |
Tune to a URL.
| mainManifestUrl | - HTTP/HTTPS url to be played. | |
| [in] | autoPlay | - Start playback immediately or not |
| contentType | - content Type. |
Definition at line 351 of file main_aamp.cpp.
|
private |
Set playback rate - Internal function.
| rate | - Rate of playback. |
| overshootcorrection | - overshoot correction in milliseconds. |
Definition at line 591 of file main_aamp.cpp.
|
private |
Set PauseAt position - Internal function.
| [in] | secondsRelativeToTuneTime | - Relative position from first tune command. |
Definition at line 859 of file main_aamp.cpp.
|
private |
Seek to a time - Internal function.
| secondsRelativeToTuneTime | - Seek position for VOD, relative position from first tune command. |
| keepPaused | - set true if want to keep paused state after seek |
Definition at line 996 of file main_aamp.cpp.
|
private |
Set audio track by audio parameters like language , rendition, codec etc..
| [in] | language,rendition,codec,channel |
Definition at line 2306 of file main_aamp.cpp.
|
private |
|
private |
Set text track by Id.
| [in] | trackId | |
| [in] | data |
Definition at line 2598 of file main_aamp.cpp.
|
private |
Stop playback and release resources.
| [in] | sendStateChangeEvent | - true if state change events need to be sent for Stop operation |
Definition at line 2818 of file main_aamp.cpp.
| class PrivateInstanceAAMP* PlayerInstanceAAMP::aamp |
AAMP player's private instance
Definition at line 1943 of file main_aamp.h.
| std::shared_ptr<PrivateInstanceAAMP> PlayerInstanceAAMP::sp_aamp |
shared pointer for aamp resource
Definition at line 1944 of file main_aamp.h.
|
private |
Pointer to stream sink
Definition at line 2021 of file main_aamp.h.
|
private |
Handle to AAMP plugin dynamic lib.
Definition at line 2022 of file main_aamp.h.
|
staticprivate |
Mutex to protect aamp instance in GetState()
Definition at line 2023 of file main_aamp.h.
|
private |
Flag denotes if async mode is on or not
Definition at line 2024 of file main_aamp.h.
|
private |
Flag indicating async tune status
Definition at line 2025 of file main_aamp.h.