|
RDK Documentation (Open Sourced RDK Components)
|
21 #include "MockAampGstPlayer.h"
172 return std::string();
void NotifyFragmentCachingOngoing()
Set pipeline to PAUSED state to wait on NotifyFragmentCachingComplete()
void EndOfStreamReached(MediaType type)
Starts processing EOS for a particular stream type.
~AAMPGstPlayer()
AAMPGstPlayer Destructor.
StreamOutputFormat
Media output format.
void QueueProtectionEvent(const char *protSystemId, const void *ptr, size_t len, MediaType type)
Generate a protection event.
void Stream(void)
To start playback.
void Configure(StreamOutputFormat format, StreamOutputFormat audioFormat, StreamOutputFormat auxFormat, StreamOutputFormat subFormat, bool bESChangeStatus, bool forwardAudioToAux, bool setReadyAfterPipelineCreation=false)
Configure pipeline based on A/V formats.
bool SendTransfer(MediaType mediaType, void *ptr, size_t len, double fpts, double fdts, double fDuration, bool initFragment)
inject mp4 segment to gstreamer pipeline
void DumpStatus(void)
Log the various info related to playback.
void SetVideoMute(bool muted)
Set video mute.
long GetPositionMilliseconds(void)
Get playback position in MS.
unsigned long getCCDecoderHandle(void)
Retrieve the video decoder handle from pipeline.
long GetDurationMilliseconds(void)
Get playback duration in MS.
bool Pause(bool pause, bool forceStopGstreamerPreBuffering)
To pause/play pipeline.
void SignalTrickModeDiscontinuity()
Signal trick mode discontinuity to gstreamer pipeline.
VideoZoomMode
Video zoom mode.
bool Discontinuity(MediaType mediaType)
Process discontinuity for a stream type.
void SetSubtitlePtsOffset(std::uint64_t pts_offset)
void SetAudioVolume(int volume)
Set audio volume.
void SetVideoRectangle(int x, int y, int w, int h)
Set video display rectangle co-ordinates.
bool SetPlayBackRate(double rate)
Set playback rate to audio/video sinks.
Gstreamer based player for AAMP.
void ClearProtectionEvent()
Cleanup generated protection event.
virtual long long GetVideoPTS(void)
Gets Video PTS.
void SetVideoZoom(VideoZoomMode zoom)
Set video zoom.
Private functions and types used internally by AAMP.
AAMPGstPlayer(AampLogManager *logObj, PrivateInstanceAAMP *aamp)
AAMPGstPlayer Constructor.
std::string GetVideoRectangle()
Get the video rectangle co-ordinates.
Class representing the AAMP player's private instance, which is not exposed to outside world.
bool SendCopy(MediaType mediaType, const void *ptr, size_t len, double fpts, double fdts, double fDuration)
inject HLS/ts elementary stream buffer to gstreamer pipeline
static void InitializeAAMPGstreamerPlugins(AampLogManager *logObj=NULL)
Increase the rank of AAMP decryptor plugins.
void Stop(bool keepLastFrame)
Stop playback and any idle handlers active at the time.
void ResetEOSSignalledFlag()
Reset EOS SignalledFlag.
void Flush(void)
Flush the buffers in pipeline.
bool CheckForPTSChangeWithTimeout(long timeout)
Check if PTS is changing.
void SeekStreamSink(double position, double rate)
Flush the data in case of a new tune pipeline.
bool IsCacheEmpty(MediaType mediaType)
Check if cache empty for a media type.
void GetVideoSize(int &w, int &h)
Get video display's width and height.
void SetSubtitleMute(bool mute)
void NotifyFragmentCachingComplete()
Set pipeline to PLAYING state once fragment caching is complete.
void StopBuffering(bool forceStop)
Un-pause pipeline and notify buffer end event to player.