RDK Documentation (Open Sourced RDK Components)
FakeAampCacheHandler.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 "AampCacheHandler.h"
21 
23 {
24 }
25 
27 {
28 }
29 
30 void AampCacheHandler::InsertToPlaylistCache(const std::string url, const GrowableBuffer* buffer, std::string effectiveUrl,bool trackLiveStatus,MediaType fileType)
31 {
32 }
33 
35 {
36 }
37 
39 {
40 }
41 
42 bool AampCacheHandler::RetrieveFromPlaylistCache(const std::string url, GrowableBuffer* buffer, std::string& effectiveUrl)
43 {
44  return false;
45 }
46 
47 void AampCacheHandler::SetMaxPlaylistCacheSize(int maxPlaylistCacheSz)
48 {
49 }
50 
51 void AampCacheHandler::SetMaxInitFragCacheSize(int maxInitFragCacheSz)
52 {
53 }
54 
55 bool AampCacheHandler::IsUrlCached(std::string url)
56 {
57  return false;
58 }
AampCacheHandler::AampCacheHandler
AampCacheHandler(AampLogManager *logObj)
Default Constructor.
Definition: AampCacheHandler.cpp:314
AampCacheHandler::InsertToPlaylistCache
void InsertToPlaylistCache(const std::string url, const GrowableBuffer *buffer, std::string effectiveUrl, bool trackLiveStatus, MediaType fileType=eMEDIATYPE_DEFAULT)
Retrieve playlist from cache
Definition: AampCacheHandler.cpp:31
AampCacheHandler::StartPlaylistCache
void StartPlaylistCache()
Start playlist caching.
Definition: AampCacheHandler.cpp:347
AampLogManager
AampLogManager Class.
Definition: AampLogManager.h:150
AampCacheHandler::~AampCacheHandler
~AampCacheHandler()
Destructor Function.
Definition: AampCacheHandler.cpp:333
AampCacheHandler::RetrieveFromPlaylistCache
bool RetrieveFromPlaylistCache(const std::string url, GrowableBuffer *buffer, std::string &effectiveUrl)
Retrieve playlist from cache.
Definition: AampCacheHandler.cpp:111
MediaType
MediaType
Media types.
Definition: AampMediaType.h:37
AampCacheHandler::IsUrlCached
bool IsUrlCached(std::string)
IsUrlCached - Check if URL is already cached.
Definition: AampCacheHandler.cpp:407
AampCacheHandler.h
Cache handler for AAMP.
AampCacheHandler::StopPlaylistCache
void StopPlaylistCache()
Stop playlist caching.
Definition: AampCacheHandler.cpp:358
GrowableBuffer
Structure of GrowableBuffer.
Definition: AampMemoryUtils.h:39
AampCacheHandler::SetMaxInitFragCacheSize
void SetMaxInitFragCacheSize(int maxInitFragCacheSz)
SetMaxInitFragCacheSize - Set Max Cache Size.
Definition: AampCacheHandler.cpp:618
AampCacheHandler::SetMaxPlaylistCacheSize
void SetMaxPlaylistCacheSize(int maxPlaylistCacheSz)
SetMaxPlaylistCacheSize - Set Max Cache Size.
Definition: AampCacheHandler.cpp:396