RDK Documentation (Open Sourced RDK Components)
FakeStreamAbstractionAamp.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 
20 #include "StreamAbstractionAAMP.h"
21 #include "MockStreamAbstractionAAMP.h"
22 
23 MockStreamAbstractionAAMP *g_mockStreamAbstractionAAMP = nullptr;
24 
26 {
27 }
28 
30 {
31 }
32 
33 void StreamAbstractionAAMP::DisablePlaylistDownloads()
34 {
35 }
36 
38 {
39  return false;
40 }
41 
43 {
44  return 0.0;
45 }
46 
48 {
49  return 0.0;
50 }
51 
53 {
54 }
55 
57 {
58 }
59 
61 {
62  return 0;
63 }
64 
65 void StreamAbstractionAAMP::SetAudioTrackInfoFromMuxedStream(std::vector<AudioTrackInfo>& vector)
66 {
67 }
68 
70 {
71  return 0;
72 }
73 
75 {
76  return 0;
77 }
78 
80 {
81  return false;
82 }
83 
85 {
86  return 0;
87 }
88 
90 {
91  return 0;
92 }
93 
95 {
96  return false;
97 }
98 
100 {
101  if (g_mockStreamAbstractionAAMP != nullptr)
102  {
103  g_mockStreamAbstractionAAMP->NotifyPlaybackPaused(paused);
104  }
105 }
106 
108 {
109  return false;
110 }
111 
113 {
114  return false;
115 }
116 
118 {
119 }
120 
122 {
123  return BUFFER_STATUS_GREEN;
124 }
125 
126 bool StreamAbstractionAAMP::SetTextStyle(const std::string &options)
127 {
128  return false;
129 }
StreamAbstractionAAMP::GetPreferredLiveOffsetFromConfig
virtual bool GetPreferredLiveOffsetFromConfig()
Set the offset value Live object.
Definition: streamabstraction.cpp:3115
StreamAbstractionAAMP::SetAudioTrackInfoFromMuxedStream
virtual void SetAudioTrackInfoFromMuxedStream(std::vector< AudioTrackInfo > &vector)
Set AudioTrack info from Muxed stream.
Definition: streamabstraction.cpp:2460
StreamAbstractionAAMP::GetBufferedVideoDurationSec
double GetBufferedVideoDurationSec()
Get buffered video duration in seconds.
Definition: streamabstraction.cpp:2960
AudioTrackInfo
Structure for audio track information Holds information about an audio track in playlist.
Definition: main_aamp.h:178
StreamAbstractionAAMP::GetAudioTrack
virtual int GetAudioTrack()
Get current audio track.
Definition: streamabstraction.cpp:3017
StreamAbstractionAAMP::IsEOSReached
virtual bool IsEOSReached()
Checks if streamer reached end of stream.
Definition: streamabstraction.cpp:2597
StreamAbstractionAAMP.h
Base classes of HLS/MPD collectors. Implements common caching/injection logic.
BUFFER_STATUS_GREEN
@ BUFFER_STATUS_GREEN
Definition: StreamAbstractionAAMP.h:140
StreamAbstractionAAMP::SetTextStyle
virtual bool SetTextStyle(const std::string &options)
Set the text style of the subtitle to the options passed.
Definition: streamabstraction.cpp:3192
MockStreamAbstractionAAMP
Definition: MockStreamAbstractionAAMP.h:26
StreamAbstractionAAMP::RefreshSubtitles
void RefreshSubtitles()
Refresh subtitle track.
Definition: streamabstraction.cpp:3055
AampLogManager
AampLogManager Class.
Definition: AampLogManager.h:150
StreamAbstractionAAMP::GetVideoBitrate
long GetVideoBitrate(void)
Get the bitrate of current video profile selected.
Definition: streamabstraction.cpp:2419
StreamAbstractionAAMP::IsInitialCachingSupported
virtual bool IsInitialCachingSupported()
Check if Initial Fragment Caching is supported.
Definition: streamabstraction.cpp:1777
StreamAbstractionAAMP::GetTextTrack
int GetTextTrack()
Get current text track.
Definition: streamabstraction.cpp:3036
StreamAbstractionAAMP::StreamAbstractionAAMP
StreamAbstractionAAMP(AampLogManager *logObj, PrivateInstanceAAMP *aamp)
StreamAbstractionAAMP constructor.
Definition: streamabstraction.cpp:1606
StreamAbstractionAAMP::GetAudioBitrate
long GetAudioBitrate(void)
Get the bitrate of current audio profile selected.
Definition: streamabstraction.cpp:2428
MediaTrack::GetBufferStatus
BufferHealthStatus GetBufferStatus()
Get buffer Status of track.
Definition: streamabstraction.cpp:83
BufferHealthStatus
BufferHealthStatus
Buffer health status.
Definition: StreamAbstractionAAMP.h:138
StreamAbstractionAAMP::GetCurrentAudioTrack
virtual bool GetCurrentAudioTrack(AudioTrackInfo &audioTrack)
Get current audio track information.
Definition: streamabstraction.cpp:2974
StreamAbstractionAAMP::~StreamAbstractionAAMP
virtual ~StreamAbstractionAAMP()
StreamAbstractionAAMP destructor.
Definition: streamabstraction.cpp:1657
StreamAbstractionAAMP::NotifyPlaybackPaused
virtual void NotifyPlaybackPaused(bool paused)
Function called when playback is paused to update related flags.
Definition: streamabstraction.cpp:2245
PrivateInstanceAAMP
Class representing the AAMP player's private instance, which is not exposed to outside world.
Definition: priv_aamp.h:640
MediaTrack::OnSinkBufferFull
void OnSinkBufferFull()
Called if sink buffer is full.
Definition: streamabstraction.cpp:2674
TextTrackInfo
Structure for text track information Holds information about a text track in playlist.
Definition: main_aamp.h:282
StreamAbstractionAAMP::MuteSubtitles
void MuteSubtitles(bool mute)
Send a MUTE/UNMUTE packet to the subtitle renderer.
Definition: streamabstraction.cpp:2585
StreamAbstractionAAMP::GetLastInjectedFragmentPosition
double GetLastInjectedFragmentPosition()
Function to returns last injected fragment position.
Definition: streamabstraction.cpp:2624
StreamAbstractionAAMP::IsMuxedStream
bool IsMuxedStream()
Check if current stream is muxed.
Definition: streamabstraction.cpp:2438
StreamAbstractionAAMP::GetCurrentTextTrack
virtual bool GetCurrentTextTrack(TextTrackInfo &textTrack)
Get current text track.
Definition: streamabstraction.cpp:2996