|
RDK Documentation (Open Sourced RDK Components)
|
Go to the documentation of this file.
49 #include "Accessibility.hpp"
136 using AdObject = std::pair<std::string, std::string>;
160 typedef std::vector < PreCacheUrlStruct> PreCacheUrlList;
167 ISO639_NO_LANGCODE_PREFERENCE,
168 ISO639_PREFER_3_CHAR_BIBLIOGRAPHIC_LANGCODE,
169 ISO639_PREFER_3_CHAR_TERMINOLOGY_LANGCODE,
170 ISO639_PREFER_2_CHAR_LANGCODE
203 AudioTrackInfo(std::string idx, std::string lang, std::string rend, std::string trackName, std::string codecStr, std::string cha,
int ch):
205 codec(codecStr),
characteristics(cha),
channels(ch),
bandwidth(-1),
primaryKey(0) ,
contentType(),
mixType(),
accessibilityType(),
isMuxed(false),
label(),
mType(),
accessibilityItem(),
210 AudioTrackInfo(std::string idx, std::string lang, std::string rend, std::string trackName, std::string codecStr,
int pk, std::string conType, std::string
mixType):
218 AudioTrackInfo(std::string idx, std::string lang, std::string rend, std::string trackName, std::string codecStr,
long bw, std::string typ,
bool available):
220 codec(codecStr),
characteristics(),
channels(0),
bandwidth(bw),
primaryKey(0),
contentType(),
mixType(),
accessibilityType(typ),
isMuxed(false),
label(),
mType(),
accessibilityItem(),
225 AudioTrackInfo(std::string idx, std::string lang, std::string rend, std::string trackName, std::string codecStr,
long bw,
int channel):
227 codec(codecStr),
characteristics(),
channels(channel),
bandwidth(bw),
primaryKey(0),
contentType(),
mixType(),
accessibilityType(),
isMuxed(false),
label(),
mType(),
accessibilityItem(),
232 AudioTrackInfo(std::string idx, std::string lang, std::string rend, std::string trackName, std::string codecStr,
long bw,
int channel,
bool muxed,
bool available):
234 codec(codecStr),
characteristics(),
channels(channel),
bandwidth(bw),
primaryKey(0),
contentType(),
mixType(),
accessibilityType(),
isMuxed(muxed),
label(),
mType(),
accessibilityItem(),
235 isAvailable(available)
239 AudioTrackInfo(std::string idx, std::string lang, std::string rend, std::string trackName, std::string codecStr,
long bw, std::string typ,
bool muxed, std::string lab, std::string type,
bool available):
241 codec(codecStr),
characteristics(),
channels(0),
bandwidth(bw),
primaryKey(0),
contentType(),
mixType(),
accessibilityType(typ),
isMuxed(muxed),
label(lab),
mType(type),
accessibilityItem(),
242 isAvailable(available)
246 AudioTrackInfo(std::string idx, std::string lang, std::string rend, std::string trackName, std::string codecStr,
long bw, std::string typ,
bool muxed, std::string lab, std::string type,
Accessibility accessbility,
bool available):
248 codec(codecStr),
characteristics(),
channels(0),
bandwidth(bw),
primaryKey(0),
contentType(),
mixType(),
accessibilityType(typ),
isMuxed(muxed),
label(lab),
mType(type),
accessibilityItem(accessbility),
249 isAvailable(available)
285 std::string language;
287 std::string rendition;
289 std::string instreamId;
290 std::string characteristics;
294 std::string accessibilityType;
299 TextTrackInfo() : index(), language(), isCC(false), rendition(), name(), instreamId(), characteristics(), codec(), primaryKey(0), accessibilityType(), label(), mType(),
accessibilityItem(),
304 TextTrackInfo(std::string idx, std::string lang,
bool cc, std::string rend, std::string trackName, std::string
id, std::string cha):
305 index(idx), language(lang), isCC(cc), rendition(rend),
306 name(trackName), instreamId(id), characteristics(cha),
307 codec(), primaryKey(0), accessibilityType(), label(), mType(),
accessibilityItem(), isAvailable(true)
311 TextTrackInfo(std::string idx, std::string lang,
bool cc, std::string rend, std::string trackName, std::string
id, std::string cha,
int pk):
312 index(idx), language(lang), isCC(cc), rendition(rend),
313 name(trackName), instreamId(id), characteristics(cha),
314 codec(), primaryKey(pk), accessibilityType(), label(), mType(),
accessibilityItem(), isAvailable(true)
318 TextTrackInfo(std::string idx, std::string lang,
bool cc, std::string rend, std::string trackName, std::string codecStr, std::string cha, std::string typ):
319 index(idx), language(lang), isCC(cc), rendition(rend),
320 name(trackName), instreamId(), characteristics(cha),
321 codec(codecStr), primaryKey(0), accessibilityType(typ), label(), mType(),
accessibilityItem(), isAvailable(true)
325 TextTrackInfo(std::string idx, std::string lang,
bool cc, std::string rend, std::string trackName, std::string codecStr, std::string cha, std::string typ, std::string lab, std::string type):
326 index(idx), language(lang), isCC(cc), rendition(rend),
327 name(trackName), instreamId(), characteristics(cha),
328 codec(codecStr), primaryKey(0), accessibilityType(typ), label(lab), mType(type),
accessibilityItem(), isAvailable(true)
332 TextTrackInfo(std::string idx, std::string lang,
bool cc, std::string rend, std::string trackName, std::string codecStr, std::string cha, std::string typ, std::string lab, std::string type,
Accessibility acc,
bool available):
333 index(idx), language(lang), isCC(cc), rendition(rend),
334 name(trackName), instreamId(), characteristics(cha),
335 codec(codecStr), primaryKey(0), accessibilityType(typ), label(lab), mType(type),
accessibilityItem(acc), isAvailable(available)
339 void set (std::string idx, std::string lang,
bool cc, std::string rend, std::string trackName, std::string codecStr, std::string cha,
340 std::string acctyp, std::string lab, std::string type,
Accessibility acc)
347 characteristics = cha;
349 accessibilityType = acctyp;
357 return ((language == track.language) &&
358 (isCC == track.isCC) &&
359 (rendition == track.rendition) &&
360 (name == track.name) &&
361 (characteristics == track.characteristics) &&
362 (codec == track.codec) &&
363 (accessibilityType == track.accessibilityType) &&
364 (label == track.label) &&
366 (mType == track.mType));
371 return (index < track.index);
376 return (index > track.index);
413 virtual bool SendCopy(
MediaType mediaType,
const void *ptr,
size_t len,
double fpts,
double fdts,
double fDuration)= 0;
426 virtual bool SendTransfer(
MediaType mediaType,
void *ptr,
size_t len,
double fpts,
double fdts,
double fDuration,
bool initFragment =
false)= 0;
449 virtual void Stop(
bool keepLastFrame){}
466 virtual void Flush(
double position = 0,
int rate = AAMP_NORMAL_PLAY_RATE,
bool shouldTearDown =
true){}
491 virtual bool Pause(
bool pause,
bool forceStopGstreamerPreBuffering){
return true; }
702 , std::function<
void(uint8_t *,
int,
int,
int) > exportFrames =
nullptr
733 void Tune(
const char *mainManifestUrl,
const char *contentType,
bool bFirstAttempt,
bool bFinalAttempt,
const char *traceUUID,
bool audioDecoderStreamSync);
745 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);
752 void Stop(
bool sendStateChangeEvent =
true);
767 void SetRate(
float rate,
int overshootcorrection=0);
788 void Seek(
double secondsRelativeToTuneTime,
bool keepPaused =
false);
909 void LoadJS(
void* context);
960 void InsertAd(
const char *url,
double positionSeconds);
980 void AddPageHeaders(std::map<std::string, std::string> customHttpHeaders);
990 void AddCustomHTTPHeader(std::string headerName, std::vector<std::string> headerValue,
bool isLicenseHeader =
false);
1359 void SetAlternateContents(
const std::string &adBreakId,
const std::string &adId,
const std::string &url);
1518 void SetPreferredLanguages(
const char* languageList,
const char *preferredRendition = NULL,
const char *preferredType = NULL,
const char* codecList = NULL,
const char* labelList = NULL );
1538 void SetAudioTrack(std::string language=
"", std::string rendition=
"", std::string type=
"", std::string codec=
"",
unsigned int channel=0, std::string label=
"");
1852 std::string
GetThumbnails(
double sduration,
double eduration);
1969 void TuneInternal(
const char *mainManifestUrl,
bool autoPlay,
const char *contentType,
bool bFirstAttempt,
bool bFinalAttempt,
const char *traceUUID,
bool audioDecoderStreamSync);
1991 void SeekInternal(
double secondsRelativeToTuneTime,
bool keepPaused);
1997 void SetAudioTrackInternal(std::string language, std::string rendition, std::string codec, std::string type,
unsigned int channel, std::string label);
2029 #endif // MAINAAMP_H
void SetAsyncTuneConfig(bool bValue)
Set async tune configuration.
long GetInitialBitrate(void)
To get the initial bitrate value.
virtual void SetSubtitlePtsOffset(std::uint64_t pts_offset)
Set subtitle pts offset in sink.
int GetInitialBufferDuration(void)
Get initial buffer duration in seconds.
void ApplyArtificialDownloadDelay(unsigned int DownloadDelayInMs)
to optionally configure simulated per-download network latency for negative testing
long GetMinimumBitrate(void)
Get minimum bitrate value.
long GetVideoBitrate(void)
To get the bitrate of current video profile.
@ eMEDIATYPE_TELEMETRY_UNKNOWN
bool IsValidRate(int rate)
Check given rate is valid.
void SetManifestTimeout(double timeout)
Optionally override default HLS main manifest download timeout with app-specific value.
std::string GetVideoRectangle()
Get the video window co-ordinates.
void SetRampDownLimit(int limit)
Set profile ramp down limit.
virtual std::string GetVideoRectangle()
Get the video window co-ordinates.
StreamOutputFormat
Media output format.
class PrivateInstanceAAMP * aamp
double GetPlaybackPosition(void)
To get the current playback position.
virtual void StopBuffering(bool forceStop)
Stop buffering in sink.
AAMPTuneFailure tuneFailure
void SetPropagateUriParameters(bool bValue)
to configure URI parameters for fragment downloads
virtual void GetVideoSize(int &w, int &h)
Get the video dimensions.
void EnableContentRestrictions()
Enable Content Restrictions - lock.
std::string GetTextTrackInfo()
Get current audio track index.
bool SetThumbnailTrack(int thumbIndex)
To set a preferred bitrate for thumbnail profile.
void SetBulkTimedMetaReport(bool bValue)
Set Bulk TimedMetadata Reporting flag.
void UnRegisterEvents(EventListener *eventListener)
UnRegister event handler.
void SetVideoZoom(VideoZoomMode zoom)
Set video zoom.
virtual bool CheckForPTSChangeWithTimeout(long timeout)
Check if PTS is changing.
void SetSlowMotionPlayRate(float rate)
Set slow motion player speed.
Structure for audio track information Holds information about an audio track in playlist.
void ManageAsyncTuneConfig(const char *url)
Manage async tune configuration for specific contents.
@ eMEDIATYPE_TELEMETRY_AVS
Class for sed event to Listener.
void SetNetworkProxy(const char *proxy)
To set the network proxy.
void SetLicenseCaching(bool bValue)
Set license caching.
virtual void NotifyFragmentCachingComplete()
API to notify that fragment caching done.
bool InitAAMPConfig(char *jsonStr)
InitAAMPConfig - Initialize the media player session with json config.
virtual void Stream(void)
Start the stream.
void SetContentProtectionDataUpdateTimeout(int timeout)
To set default timeout for Dynamic ContentProtectionDataUpdate on Key Rotation.
DRMSystems GetPreferredDRM()
Get Preferred DRM.
bool IsLive()
To check whether the asset is live or not.
virtual void SetVideoMute(bool muted)
Set video mute state.
void SetStallTimeout(int timeoutMS)
To set the timeout value to be used for playback stall detection.
void SetSegmentDecryptFailCount(int value)
Set retry limit on Segment drm decryption failure.
void SetDownloadStartTimeout(long startTimeout)
To set the curl download start timeout.
int GetPlaybackRate(void)
To get the current playback rate.
void StopInternal(bool sendStateChangeEvent)
Stop playback and release resources.
void EnableSeekableRange(bool enabled)
Enable seekable range values in progress event.
void EnableAsyncOperation()
Enable async operation and initialize resources.
int GetAudioTrack()
Get current audio track index.
void SetPreferredSubtitleLanguage(const char *language)
Set preferred subtitle language.
void RemoveEventListener(AAMPEventType eventType, EventListener *eventListener)
Remove event listener for eventType.
virtual void Stop(bool keepLastFrame)
virtual bool SendTransfer(MediaType mediaType, void *ptr, size_t len, double fpts, double fdts, double fDuration, bool initFragment=false)=0
API to send audio/video buffer into the sink.
AuthTokenErrors
Auth Token Failure codes.
void SetLicenseCustomData(const char *customData)
Set License Custom Data.
void SetVideoRectangle(int x, int y, int w, int h)
Set video rectangle.
void SubscribeResponseHeaders(std::vector< std::string > responseHeaders)
Subscribe array of http response headers.
void SetInitialBufferDuration(int durationSec)
Set initial buffer duration in seconds.
virtual bool SetPlayBackRate(double rate)
Set player rate to audio/video sink.
void AsyncStartStop()
Enable/Disable async operation.
void SetRepairIframes(bool configState)
To set the repairIframes flag.
const char * GetPreferredLanguages()
Get current preferred language list.
std::string GetPlaybackStats()
Get playback statistics formated for partner apps.
void XRESupportedTune(bool xreSupported)
To set whether the JS playback session is from XRE or not.
std::string characteristics
void SetUseAbsoluteTimeline(bool configState)
To set UseAbsoluteTimeline for DASH.
void PersistBitRateOverSeek(bool value)
Enable/disable configuration to persist ABR profile over seek/SAP.
void SetAnonymousRequest(bool isAnonymous)
Indicates if session token has to be used with license request or not.
virtual void SetVideoZoom(VideoZoomMode zoom)
Set video zoom state.
int GetVideoZoom(void)
To get video zoom mode.
std::string GetAvailableVideoTracks()
Get available video tracks.
void SetAlternateContents(const std::string &adBreakId, const std::string &adId, const std::string &url)
Setting the alternate contents' (Ads/blackouts) URL.
void PauseAtInternal(double secondsRelativeToTuneTime)
Set PauseAt position - Internal function.
void SetLicenseReqProxy(const char *licenseProxy)
To set the proxy for license request.
void SetVideoTracks(std::vector< long > bitrates)
Set video tracks.
void SetPreferredCodec(const char *codecList)
Set optional preferred codec list.
void AddEventListener(AAMPEventType eventType, EventListener *eventListener)
Support multiple listeners for multiple event type.
void SetLanguageFormat(LangCodePreference preferredFormat, bool useRole=false)
Set Language preferred Format.
void SetLinearTrickplayFPS(int linearTrickplayFPS)
Set Linear Trickplay FPS.
void SetTextTrack(int trackId, char *ccData=NULL)
Set text track.
void SetInitRampdownLimit(int limit)
Set Initial profile ramp down limit.
std::string GetAvailableAudioTracks(bool allTrack=false)
Get available audio tracks.
std::vector< long > GetVideoBitrates(void)
To get the available video bitrates.
void SetLanguage(const char *language)
Set Audio language.
VideoZoomMode
Video zoom mode.
void SetInitFragTimeoutRetryCount(int count)
To set the max retry attempts for init frag curl timeout failures.
void SetRuntimeDRMConfigSupport(bool DynamicDRMSupported)
To set Dynamic DRM feature by Application.
void SetLiveOffset4K(double liveoffset)
Set Live Offset.
const char * GetCurrentDRM()
Get current drm.
void SetNewAdBreakerConfig(bool bValue)
Configure New AdBreaker Enable/Disable.
void SetLiveOffset(double liveoffset)
Set Live Offset.
void SetReportVideoPTS(bool enabled)
Enable video PTS reporting in progress event.
virtual void DumpStatus(void)
Dump the sink status for debugging purpose.
PlayerInstanceAAMP & operator=(const PlayerInstanceAAMP &other)=delete
To overload = operator for copying.
void SetMaximumBitrate(long bitrate)
Set maximum bitrate value.
void SetVODTrickplayFPS(int vodTrickplayFPS)
Set VOD Trickplay FPS.
void TuneInternal(const char *mainManifestUrl, bool autoPlay, const char *contentType, bool bFirstAttempt, bool bFinalAttempt, const char *traceUUID, bool audioDecoderStreamSync)
Tune to a URL.
void Seek(double secondsRelativeToTuneTime, bool keepPaused=false)
Seek to a time.
long GetMaximumBitrate(void)
Get maximum bitrate value.
void UnloadJS(void *context)
void SetPausedBehavior(int behavior)
To set preferred paused state behavior.
void SetCCStatus(bool enabled)
Set CC visibility on/off.
virtual void QueueProtectionEvent(const char *protSystemId, const void *ptr, size_t len, MediaType type)
Queue-up the protection event.
void SetCEAFormat(int format)
Set the CEA format for force setting.
void SetParallelPlaylistDL(bool bValue)
Set parallel playlist download config value.
virtual void ClearProtectionEvent()
Clear the protection event.
void SetPlaylistTimeout(double timeout)
Optionally override default HLS main manifest download timeout with app-specific value.
void SetAuxiliaryLanguage(const std::string &language)
Set auxiliary language.
void SetParallelPlaylistRefresh(bool bValue)
Set parallel playlist download config value for linear.
virtual void SetSubtitleMute(bool muted)
Set subtitle mute state.
void SetDisable4K(bool value)
Disable 4K Support in player.
void PauseAt(double position)
Set PauseAt position.
void SetAuxiliaryLanguageInternal(const std::string &language)
Set auxiluerry track language.
Classes for AAMP Event listener.
std::string GetPreferredTextProperties()
Get preferred text prioperties.
Player interface class for the JS pluggin.
void SetOutputResolutionCheck(bool bValue)
Set Display resolution check for video profile filtering.
virtual long GetDurationMilliseconds(void)
Get playback duration in milliseconds.
Scheduler class for asynchronous operations.
std::string GetAudioTrackInfo()
Get current audio track index.
virtual unsigned long getCCDecoderHandle(void)
Get closed caption handle.
static std::mutex mPrvAampMtx
void SetStallErrorCode(int errorCode)
To set the error code to be used for playback stalled error.
bool GetCCStatus(void)
Get CC visibility on/off.
virtual bool Discontinuity(MediaType mediaType)=0
Process PTS discontinuity for a stream type.
void SetDownloadBufferSize(int bufferSize)
To set the download buffer size value.
long GetInitialBitrate4k(void)
To get the initial bitrate value for 4K assets.
virtual bool SendCopy(MediaType mediaType, const void *ptr, size_t len, double fpts, double fdts, double fDuration)=0
API to send audio/video buffer into the sink.
void ResetConfiguration()
API to reset configuration across tunes for single player instance.
void InsertAd(const char *url, double positionSeconds)
Schedule insertion of ad at given position.
bool IsJsInfoLoggingEnabled()
Get jsinfo config value (default false)
void SetAudioVolume(int volume)
Set Audio Volume.
virtual void SetVideoRectangle(int x, int y, int w, int h)
Set video display rectangle co-ordinates.
virtual void NotifyFragmentCachingOngoing()
API to notify that fragment caching is ongoing.
void detach()
Soft stop the player instance.
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..
@ eMEDIATYPE_TELEMETRY_DRM
virtual bool Pause(bool pause, bool forceStopGstreamerPreBuffering)
Enabled or disable playback pause.
void SeekInternal(double secondsRelativeToTuneTime, bool keepPaused)
Seek to a time - Internal function.
void SetTextTrackInternal(int trackId, char *data)
Set text track by Id.
std::string GetPreferredAudioProperties()
Get preferred audio prioperties.
void SetSubtitleMute(bool muted)
Enable/ Disable Subtitle.
void ProcessContentProtectionDataConfig(const char *jsonbuffer)
@ eAUTHTOKEN_INVALID_STATUS_CODE
AampScheduler * mScheduler
AAMPTuneFailure
AAMP playback error codes.
MediaTypeTelemetry
Media types for telemetry.
virtual ~StreamSink()
StreamSink Dtor.
void SetAvgBWForABR(bool useAvgBW)
Indicates average BW to be used for ABR Profiling.
virtual bool IsCacheEmpty(MediaType mediaType)
Check whether cach is empty.
PrivAAMPState GetState(void)
To get the current AAMP state.
Accessibility accessibilityItem
void SetRate(float rate, int overshootcorrection=0)
Set playback rate.
Class to schedule commands for async execution.
void SetInitialBitrate(long bitrate)
To set the initial bitrate value.
const char * GetCurrentAudioLanguage()
Get current audio language.
void SetPreferredTextLanguages(const char *param)
Set optional preferred language list.
@ eMEDIATYPE_TELEMETRY_INIT
void SetSessionToken(std::string sessionToken)
Set the session token for player.
virtual long GetPositionMilliseconds(void)
Get playback position in milliseconds.
GStreamer Abstraction class for the implementation of AAMPGstPlayer and gstaamp plugin.
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 integrati...
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.
virtual void ResetEOSSignalledFlag()
Reset EOS SignalledFlag.
std::string GetThumbnails(double sduration, double eduration)
To get preferred thumbnails for the duration.
void SetAudioBitrate(long bitrate)
To set a preferred bitrate for audio profile.
virtual long long GetVideoPTS(void)
Get Video 90 KHz Video PTS.
Class representing the AAMP player's private instance, which is not exposed to outside world.
double GetPlaybackDuration(void)
To get the current asset's duration.
PrivAAMPState
Mapping all required status codes based on JS player requirement. These requirements may be forced by...
void SetNetworkTimeout(double timeout)
To override default curl timeout for playlist/fragment downloads.
int GetTextTrack()
Get current text track index.
void SetPreferredDRM(DRMSystems drmType)
Set Preferred DRM.
long GetAudioBitrate(void)
To get the bitrate of current audio profile.
void SetMaxPlaylistCacheSize(int cacheSize)
Set Maximum Cache Size for storing playlist.
virtual void SignalTrickModeDiscontinuity()
Signal discontinuity on trickmode if restamping is done by stream sink.
Accessibility accessibilityItem
void LoadJS(void *context)
void SetRateAndSeek(int rate, double secondsRelativeToTuneTime)
Seek to a time and playback with a new rate.
Events supported by the AAMP player.
void SetNativeCCRendering(bool enable)
Enable/disable the native CC rendering feature.
std::string GetAvailableTextTracks(bool allTrack=false)
Get available text tracks.
bool GetVideoMute(void)
To get video mute status.
void SetMatchingBaseUrlConfig(bool bValue)
Set Matching BaseUrl Config Configuration.
void SetRateInternal(float rate, int overshootcorrection)
Set playback rate - Internal function.
void EnableVideoRectangle(bool rectProperty)
Set video rectangle property.
std::vector< long > GetAudioBitrates(void)
To get the available audio bitrates.
void SetSegmentInjectFailCount(int value)
Set retry limit on Segment injection failure.
void SetRetuneForUnpairedDiscontinuity(bool bValue)
Set unpaired discontinuity retune flag.
void SetWesterosSinkConfig(bool bValue)
Set Westeros sink configuration.
void SetDownloadStallTimeout(long stallTimeout)
To set the curl stall timeout value.
virtual void Flush(double position=0, int rate=1, bool shouldTearDown=true)
Flush the pipeline.
int GetRampDownLimit(void)
Get profile ramp down limit.
AAMPEventType
Type of the events sending to the JSPP player.
Pre cache the data information.
std::string GetManifest(void)
To get the available manifest.
void SetAudioTrack(std::string language="", std::string rendition="", std::string type="", std::string codec="", unsigned int channel=0, std::string label="")
Set audio track.
virtual void SetAudioVolume(int volume)
Set volume level.
Structure for text track information Holds information about a text track in playlist.
std::string GetAvailableThumbnailTracks(void)
To get the available bitrates for thumbnails.
void SetStereoOnlyPlayback(bool bValue)
Set Stereo Only Playback.
void SetAppName(std::string name)
Set the application name which has created PlayerInstanceAAMP, for logging purposes.
void SetLicenseServerURL(const char *url, DRMSystems type=eDRM_MAX_DRMSystems)
Set License Server URL.
void DisableContentRestrictions(long grace, long time, bool eventChange)
Disable Content Restrictions - unlock.
void Stop(bool sendStateChangeEvent=true)
Stop playback and release resources.
bool IsOOBCCRenderingSupported()
Structure holding aamp tune failure code and corresponding application error code and description.
void SetPreCacheTimeWindow(int nTimeWindow)
SetPreCacheTimeWindow Function to Set PreCache Time.
@ eAUTHTOKEN_TOKEN_PARSE_ERROR
void SetVideoBitrate(long bitrate)
To set a preferred bitrate for video profile.
~PlayerInstanceAAMP()
PlayerInstanceAAMP Destructor.
virtual bool AdjustPlayBackRate(double position, double rate)
Adjust the pipeline.
void SetTextStyle(const std::string &options)
Set style options for text track rendering.
AAMPAnomalyMessageType
AAMP anomaly message types.
DRMSystems
DRM system types.
PlayerInstanceAAMP(StreamSink *streamSink=NULL, std::function< void(uint8_t *, int, int, int) > exportFrames=nullptr)
PlayerInstanceAAMP Constructor.
virtual void SeekStreamSink(double position, double rate)
Seek stream sink to desired position and playback rate with a flushing seek.
std::string GetAAMPConfig()
GetAAMPConfig - GetAamp Config as JSON string.
void SetDownloadLowBWTimeout(long lowBWTimeout)
To set the curl download low bandwidth timeout value.
virtual void EndOfStreamReached(MediaType mediaType)
Notifies EOS to sink.
std::string GetTextStyle()
Get style options for text track rendering.
std::shared_ptr< PrivateInstanceAAMP > sp_aamp
void SeekToLive(bool keepPaused=false)
Seek to live point.
int GetAudioVolume(void)
To get the current audio volume.
void AddPageHeaders(std::map< std::string, std::string > customHttpHeaders)
Applies the custom http headers for page (Injector bundle) received from the js layer.
void SetPreferredRenditions(const char *renditionList)
Set optional preferred rendition list.
void SetSubscribedTags(std::vector< std::string > subscribedTags)
Set array of subscribed tags.
Data type to store Accessibility Node data.
StreamSink * mInternalStreamSink
virtual void Configure(StreamOutputFormat format, StreamOutputFormat audioFormat, StreamOutputFormat auxFormat, StreamOutputFormat subFormat, bool bESChangeStatus, bool forwardAudioToAux, bool setReadyAfterPipelineCreation=false)
Configure output formats.
void SetMinimumBitrate(long bitrate)
Set minimum bitrate value.
void RegisterEvents(EventListener *eventListener)
Register event handler.
void AddCustomHTTPHeader(std::string headerName, std::vector< std::string > headerValue, bool isLicenseHeader=false)
Add/Remove a custom HTTP header and value.
@ eMEDIATYPE_TELEMETRY_MANIFEST
void SetVideoMute(bool muted)
Enable/ Disable Video.
LangCodePreference
Language Code Preference types.
void SetTuneEventConfig(int tuneEventType)
To set the vod-tune-event according to the player.
void SetRetuneForGSTInternalError(bool bValue)
Set retune configuration for gstpipeline internal data stream error.
void SetReportInterval(int reportInterval)
To set the Playback Position reporting interval.
std::string accessibilityType
void SetNewABRConfig(bool bValue)
Configure New ABR Enable/Disable.
void SetPreferredLabels(const char *lableList)
Set optional preferred label list.
void SetInitialBitrate4K(long bitrate4K)
To set the initial bitrate value for 4K assets.
void SetSslVerifyPeerConfig(bool bValue)
Configure URI parameters.