RDK Documentation (Open Sourced RDK Components)
FakeHybridABRManager.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 "HybridABRManager.h"
21 
22 
23 void HybridABRManager::ReadPlayerConfig(AampAbrConfig *mAampAbrConfig)
24 {
25 }
26 
27 long HybridABRManager::CheckAbrThresholdSize(int bufferlen, int downloadTimeMs ,long currentProfilebps ,int fragmentDurationMs , CurlAbortReason abortReason)
28 {
29  return 0;
30 }
31 
32 void HybridABRManager::UpdateABRBitrateDataBasedOnCacheLength(std::vector < std::pair<long long,long> > &mAbrBitrateData,long downloadbps,bool LowLatencyMode)
33 {
34 }
35 
36 void HybridABRManager::UpdateABRBitrateDataBasedOnCacheLife(std::vector < std::pair<long long,long> > &mAbrBitrateData , std::vector< long> &tmpData)
37 {
38 }
39 
40 long HybridABRManager::UpdateABRBitrateDataBasedOnCacheOutlier(std::vector< long> &tmpData)
41 {
42  return 0;
43 }
44 
45 bool HybridABRManager::CheckProfileChange(double totalFetchedDuration ,int currProfileIndex , long availBW)
46 {
47  return false;
48 }
49 
50 bool HybridABRManager::IsLowestProfile(int currentProfileIndex,bool IstrickplayMode)
51 {
52  return false;
53 }
54 
55 void HybridABRManager::GetDesiredProfileOnBuffer(int currProfileIndex,int &newProfileIndex,double bufferValue,double minBufferNeeded,const std::string& periodId)
56 {
57 }
58 
59 
60 void HybridABRManager::CheckRampupFromSteadyState(int currProfileIndex,int &newProfileIndex,long nwBandwidth,double bufferValue,long newBandwidth,BitrateChangeReason &mhBitrateReason,int &mMaxBufferCountCheck,const std::string& periodId)
61 {
62 }
63 
64 void HybridABRManager::CheckRampdownFromSteadyState(int currProfileIndex, int &newProfileIndex,BitrateChangeReason &mBitrateReason,int mABRLowBufferCounter,const std::string& periodId)
65 {
66 }
67 
68 long long HybridABRManager::ABRGetCurrentTimeMS(void)
69 {
70  return 0;
71 }
72 
73 bool HybridABRManager::GetLowLatencyStartABR()
74 {
75  return false;
76 }
77 
78 void HybridABRManager::SetLowLatencyStartABR(bool bStart)
79 {
80 }
81 
82 bool HybridABRManager::GetLowLatencyServiceConfigured()
83 {
84  return false;
85 }
86 
87 void HybridABRManager::SetLowLatencyServiceConfigured(bool bConfig)
88 {
89 }
90 
91 bool HybridABRManager::IsABRDataGoodToEstimate(long time_diff)
92 {
93  return false;
94 }
95 
96 void HybridABRManager::CheckLLDashABRSpeedStoreSize(struct SpeedCache *speedcache,long &bitsPerSecond,long time_now,long total_dl_diff,long time_diff,long currentTotalDownloaded)
97 {
98 }
99 
BitrateChangeReason
BitrateChangeReason
Different reasons for bitrate change.
Definition: priv_aamp.h:251
SpeedCache
Stroes the information for cache speed.
Definition: priv_aamp.h:489
CurlAbortReason
CurlAbortReason
Http Header Type.
Definition: priv_aamp.h:240