|
RDK Documentation (Open Sourced RDK Components)
|
Go to the documentation of this file.
27 #ifndef __AAMP_CC_MANAGER_H__
28 #define __AAMP_CC_MANAGER_H__
41 eCLOSEDCAPTION_FORMAT_608 = 0,
42 eCLOSEDCAPTION_FORMAT_708,
43 eCLOSEDCAPTION_FORMAT_DEFAULT
60 int Init(
void *handle);
66 virtual int GetId() {
return 0; };
72 virtual void Release(
int iID) = 0;
103 int SetTrack(
const std::string &track,
const CCFormat format = eCLOSEDCAPTION_FORMAT_DEFAULT);
111 int SetStyle(
const std::string &options);
152 void updateLastTextTracks(
const std::vector<TextTrackInfo>& newTextTracks) { mLastTextTracks = newTextTracks; }
248 std::vector<TextTrackInfo> mLastTextTracks{};
virtual void Release(int iID)=0
Release CC resources.
const std::vector< TextTrackInfo > & getLastTextTracks() const
Get list of text tracks.
virtual void StopRendering()=0
To stop CC rendering.
int SetTrack(const std::string &track, const CCFormat format=eCLOSEDCAPTION_FORMAT_DEFAULT)
Set CC track.
virtual int Initialize(void *handle)
Impl specific initialization code called once in Init() function.
void SetParentalControlStatus(bool locked)
To enable/disable CC when parental control locked/unlocked.
int Init(void *handle)
Initialize CC resource.
Types and APIs exposed by the AAMP player.
const std::string & GetTrack()
Get current CC track.
virtual int SetAnalogChannel(unsigned int id)=0
set analog channel with specified id
int SetStatus(bool enable)
Enable/disable CC rendering.
virtual void EnsureInitialized()
Impl specific initialization code called before each public interface call.
virtual int SetDigitalChannel(unsigned int id)=0
set digital channel with specified id
void Start()
To start CC rendering.
virtual void StartRendering()=0
To start CC rendering.
static void DestroyInstance()
Destroy instance.
int SetStyle(const std::string &options)
Set CC styles for rendering.
bool IsOOBCCRenderingSupported()
To check whether Out of Band Closed caption/Subtile rendering supported or not.
Handles closed caption operations.
const std::string & GetStyle()
Get current CC styles.
virtual void EnsureHALInitialized()
Impl specific initialization code for HAL.
CCFormat
Different CC formats.
virtual void EnsureRendererCommsInitialized()
Impl specific initialization code for Communication with renderer.
bool GetStatus()
Get CC rendering status.
void SetTrickplayStatus(bool enable)
To enable/disable CC when trickplay starts/ends.
virtual int GetId()
Gets Handle or ID, Every client using subtec must call GetId in the begining , save id,...
static AampCCManagerBase * GetInstance()
Get the singleton instance.
static AampCCManagerBase * mInstance
Singleton instance.
void RestoreCC()
To restore cc state after new tune.
Handle the CC manager instance.
void Stop()
To stop CC rendering.
void updateLastTextTracks(const std::vector< TextTrackInfo > &newTextTracks)
update stored list of text tracks
virtual bool CheckCCHandle() const
validate mCCHandle