RDK Documentation (Open Sourced RDK Components)
FakeFragmentCollector_Progressive.cpp
1 /*
2 * If not stated otherwise in this file or this component's license file the
3 * following copyright and licenses apply:
4 *
5 * Copyright 2022 RDK Management
6 *
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 */
19 
21 
23 {
24 }
25 
27 {
28 }
29 
31 
33 
35 
36 void StreamAbstractionAAMP_PROGRESSIVE::Stop(bool clearChannelData) { }
37 
38 void StreamAbstractionAAMP_PROGRESSIVE::GetStreamFormat(StreamOutputFormat &primaryOutputFormat, StreamOutputFormat &audioOutputFormat, StreamOutputFormat &auxAudioOutputFormat, StreamOutputFormat &subtitleOutputFormat) { }
39 
41 
43 
45 
47 
49 
51 
52 int StreamAbstractionAAMP_PROGRESSIVE::GetBWIndex(long bandwidth) { return 0; }
53 
54 std::vector<long> StreamAbstractionAAMP_PROGRESSIVE::GetVideoBitrates(void) { std::vector<long> temp; return temp; }
55 
56 std::vector<long> StreamAbstractionAAMP_PROGRESSIVE::GetAudioBitrates(void) { std::vector<long> temp; return temp; }
57 
59 
61 
62 std::vector<StreamInfo*> StreamAbstractionAAMP_PROGRESSIVE::GetAvailableVideoTracks(void) { std::vector<StreamInfo*> temp; return temp; }
63 
64 std::vector<StreamInfo*> StreamAbstractionAAMP_PROGRESSIVE::GetAvailableThumbnailTracks(void) { std::vector<StreamInfo*> temp; return temp; }
65 
67 
68 std::vector<ThumbnailData> StreamAbstractionAAMP_PROGRESSIVE::GetThumbnailRangeData(double, double, std::string*, int*, int*, int*, int*) { std::vector<ThumbnailData> temp; return temp; }
69 
71 
73 {
74  return 0;
75 }
StreamAbstractionAAMP_PROGRESSIVE::StopInjection
void StopInjection(void) override
Stops injecting fragments to StreamSink.
Definition: fragmentcollector_progressive.cpp:410
StreamAbstractionAAMP_PROGRESSIVE::GetStreamFormat
void GetStreamFormat(StreamOutputFormat &primaryOutputFormat, StreamOutputFormat &audioOutputFormat, StreamOutputFormat &auxOutputFormat, StreamOutputFormat &subtitleOutputFormat) override
Get output format of stream.
Definition: fragmentcollector_progressive.cpp:279
StreamOutputFormat
StreamOutputFormat
Media output format.
Definition: main_aamp.h:106
StreamInfo
Structure holding the information of a stream.
Definition: StreamAbstractionAAMP.h:69
StreamAbstractionAAMP_PROGRESSIVE::IsInitialCachingSupported
bool IsInitialCachingSupported() override
check whether initial caching data supported
Definition: fragmentcollector_progressive.cpp:339
TuneType
TuneType
Tune Typea.
Definition: priv_aamp.h:190
fragmentcollector_progressive.h
Streamer for progressive mp3/mp4 playback.
StreamAbstractionAAMP_PROGRESSIVE::SetThumbnailTrack
bool SetThumbnailTrack(int) override
Function to set thumbnail track for processing.
Definition: fragmentcollector_progressive.cpp:395
StreamAbstractionAAMP_PROGRESSIVE::DumpProfiles
void DumpProfiles(void) override
Stub implementation.
Definition: fragmentcollector_progressive.cpp:272
StreamAbstractionAAMP_PROGRESSIVE::~StreamAbstractionAAMP_PROGRESSIVE
~StreamAbstractionAAMP_PROGRESSIVE()
StreamAbstractionAAMP_PROGRESSIVE Destructor.
Definition: fragmentcollector_progressive.cpp:236
StreamAbstractionAAMP_PROGRESSIVE::GetBWIndex
int GetBWIndex(long bitrate) override
Get index of profile corresponds to bandwidth.
Definition: fragmentcollector_progressive.cpp:347
AampLogManager
AampLogManager Class.
Definition: AampLogManager.h:150
StreamAbstractionAAMP_PROGRESSIVE::GetVideoBitrates
std::vector< long > GetVideoBitrates(void) override
To get the available video bitrates.
Definition: fragmentcollector_progressive.cpp:355
MediaTrack
Base Class for Media Track.
Definition: StreamAbstractionAAMP.h:159
StreamAbstractionAAMP
StreamAbstraction class of AAMP.
Definition: StreamAbstractionAAMP.h:577
StreamAbstractionAAMP_PROGRESSIVE::GetStreamInfo
StreamInfo * GetStreamInfo(int idx) override
Get stream information of a profile from subclass.
Definition: fragmentcollector_progressive.cpp:306
StreamAbstractionAAMP_PROGRESSIVE::GetStartTimeOfFirstPTS
double GetStartTimeOfFirstPTS() override
Get Start time PTS of first sample.
Definition: fragmentcollector_progressive.cpp:322
StreamAbstractionAAMP_PROGRESSIVE::Init
AAMPStatusType Init(TuneType tuneType) override
Initialize a newly created object.
Definition: fragmentcollector_progressive.cpp:198
StreamAbstractionAAMP_PROGRESSIVE::GetThumbnailRangeData
std::vector< ThumbnailData > GetThumbnailRangeData(double, double, std::string *, int *, int *, int *, int *) override
Definition: fragmentcollector_progressive.cpp:402
TrackType
TrackType
Media Track Types.
Definition: StreamAbstractionAAMP.h:48
StreamAbstractionAAMP_PROGRESSIVE::Stop
void Stop(bool clearChannelData) override
Stops streaming.
Definition: fragmentcollector_progressive.cpp:252
eAAMPSTATUS_OK
@ eAAMPSTATUS_OK
Definition: priv_aamp.h:207
StreamAbstractionAAMP_PROGRESSIVE::GetAvailableThumbnailTracks
std::vector< StreamInfo * > GetAvailableThumbnailTracks(void) override
To get the available thumbnail tracks.
Definition: fragmentcollector_progressive.cpp:387
StreamAbstractionAAMP_PROGRESSIVE::StreamAbstractionAAMP_PROGRESSIVE
StreamAbstractionAAMP_PROGRESSIVE(AampLogManager *logObj, class PrivateInstanceAAMP *aamp, double seekpos, float rate)
StreamAbstractionAAMP_PROGRESSIVE Constructor.
Definition: fragmentcollector_progressive.cpp:227
StreamAbstractionAAMP_PROGRESSIVE::GetMaxBitrate
long GetMaxBitrate(void) override
Gets Max Bitrate avialable for current playback.
Definition: fragmentcollector_progressive.cpp:363
StreamAbstractionAAMP_PROGRESSIVE::Start
void Start() override
Starts streaming.
Definition: fragmentcollector_progressive.cpp:243
StreamAbstractionAAMP_PROGRESSIVE::GetAvailableVideoTracks
std::vector< StreamInfo * > GetAvailableVideoTracks(void) override
To get the available video tracks.
Definition: fragmentcollector_progressive.cpp:379
PrivateInstanceAAMP
Class representing the AAMP player's private instance, which is not exposed to outside world.
Definition: priv_aamp.h:640
AAMPStatusType
AAMPStatusType
AAMP Function return values.
Definition: priv_aamp.h:205
StreamAbstractionAAMP_PROGRESSIVE::GetFirstPTS
double GetFirstPTS() override
Get PTS of first sample.
Definition: fragmentcollector_progressive.cpp:314
StreamAbstractionAAMP_PROGRESSIVE::StartInjection
void StartInjection(void) override
Start injecting fragments to StreamSink.
Definition: fragmentcollector_progressive.cpp:417
StreamAbstractionAAMP_PROGRESSIVE::GetAudioBitrates
std::vector< long > GetAudioBitrates(void) override
To get the available audio bitrates.
Definition: fragmentcollector_progressive.cpp:371
StreamAbstractionAAMP_PROGRESSIVE::GetBufferedDuration
double GetBufferedDuration() override
Get the Buffered duration.
Definition: fragmentcollector_progressive.cpp:330
StreamAbstractionAAMP_PROGRESSIVE::GetStreamPosition
double GetStreamPosition() override
Get current stream position.
Definition: fragmentcollector_progressive.cpp:298
StreamAbstractionAAMP_PROGRESSIVE::GetMediaTrack
MediaTrack * GetMediaTrack(TrackType type) override
Return MediaTrack of requested type.
Definition: fragmentcollector_progressive.cpp:290