|
RDK Documentation (Open Sourced RDK Components)
|
20 #ifndef AAMP_MOCK_STREAM_ABSTRACTION_AAMP_H
21 #define AAMP_MOCK_STREAM_ABSTRACTION_AAMP_H
23 #include <gmock/gmock.h>
38 MOCK_METHOD(
void,
Start, ());
40 MOCK_METHOD(
void,
Stop, (
bool clearChannelData));
54 MOCK_METHOD(
int,
GetBWIndex, (
long bandwidth));
64 MOCK_METHOD(
void,
SeekPosUpdate, (
double secondsRelativeToTuneTime));
66 MOCK_METHOD(std::vector<StreamInfo*>, GetAvailableVideoTracks, ());
72 MOCK_METHOD(std::vector<ThumbnailData>,
GetThumbnailRangeData, (
double,
double, std::string*,
int*,
int*,
int*,
int*));
76 MOCK_METHOD(
bool ,
Is4KStream, (
int &height,
long &bandwidth));
virtual MediaTrack * GetMediaTrack(TrackType type)=0
Return MediaTrack of requested type.
StreamOutputFormat
Media output format.
Structure holding the information of a stream.
virtual void Stop(bool clearChannelData)=0
Stops streaming.
PrivateInstanceAAMP * aamp
Base classes of HLS/MPD collectors. Implements common caching/injection logic.
virtual std::vector< long > GetVideoBitrates(void)=0
Get available video bitrates.
virtual int GetBWIndex(long bandwidth)=0
Get profile index of given bandwidth.
virtual double GetFirstPTS()=0
Get PTS of first sample.
virtual void Start()=0
Start streaming.
virtual std::vector< StreamInfo * > GetAvailableThumbnailTracks(void)=0
Get available thumbnail bitrates.
virtual void DumpProfiles(void)=0
Dump profiles for debugging. To be implemented by sub classes.
virtual void StopInjection(void)=0
Stop injection of fragments.
virtual double GetStartTimeOfFirstPTS()=0
Get Start time PTS of first sample.
virtual void StartInjection(void)=0
Start injection of fragments.
StreamAbstraction class of AAMP.
StreamAbstractionAAMP(AampLogManager *logObj, PrivateInstanceAAMP *aamp)
StreamAbstractionAAMP constructor.
virtual void GetStreamFormat(StreamOutputFormat &primaryOutputFormat, StreamOutputFormat &audioOutputFormat, StreamOutputFormat &auxAudioOutputFormat, StreamOutputFormat &subtitleOutputFormat)=0
Get output format of stream.
TrackType
Media Track Types.
virtual bool SetThumbnailTrack(int)=0
Set thumbnail bitrate.
virtual double GetBufferedDuration(void)=0
Function to get the buffer duration of stream.
virtual bool Is4KStream(int &height, long &bandwidth)=0
check if current stream have 4K content
virtual AAMPStatusType Init(TuneType tuneType)=0
Initialize a newly created object. To be implemented by sub classes.
virtual StreamInfo * GetStreamInfo(int idx)=0
Get stream information of a profile from subclass.
virtual void NotifyPlaybackPaused(bool paused)
Function called when playback is paused to update related flags.
virtual double GetStreamPosition()=0
Get current stream position.
Class representing the AAMP player's private instance, which is not exposed to outside world.
AAMPStatusType
AAMP Function return values.
virtual void SeekPosUpdate(double secondsRelativeToTuneTime)=0
Update seek position when player is initialized.
virtual std::vector< long > GetAudioBitrates(void)=0
Get available audio bitrates.
virtual std::vector< ThumbnailData > GetThumbnailRangeData(double, double, std::string *, int *, int *, int *, int *)=0
Get thumbnail data for duration value.