Rialto  0.1
Rialto media pipeline API
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
firebolt::rialto::IMediaPipeline::MediaSource Class Referenceabstract

A class that represents a source of media data. More...

#include <IMediaPipeline.h>

Inheritance diagram for firebolt::rialto::IMediaPipeline::MediaSource:
Inheritance graph
[legend]

Public Member Functions

virtual ~MediaSource ()
 Virtual destructor.
 
virtual std::unique_ptr< MediaSourcecopy () const =0
 Create a copy.
 
virtual MediaSourceType getType () const
 Return the source type.
 
std::string getMimeType () const
 Return the MIME type.
 
bool getHasDrm () const
 Return if source has drm.
 
SourceConfigType getConfigType () const
 Return the source config type.
 
int32_t getId () const
 Return the source id.
 
void setId (int32_t id)
 Set the source id.
 

Protected Member Functions

 MediaSource (SourceConfigType configType=SourceConfigType::UNKNOWN, const std::string &mimeType=std::string(), bool hasDrm=true)
 Default constructor. More...
 

Protected Attributes

int32_t m_id
 The source id. Parameter will be set by a successful call to attachSource()
 
SourceConfigType m_configType
 The source config type.
 
std::string m_mimeType
 The MIME type.
 
bool m_hasDrm
 Parameter to check if encrypted frames will be used for this source.
 

Detailed Description

A class that represents a source of media data.

Constructor & Destructor Documentation

◆ MediaSource()

firebolt::rialto::IMediaPipeline::MediaSource::MediaSource ( SourceConfigType  configType = SourceConfigType::UNKNOWN,
const std::string &  mimeType = std::string(),
bool  hasDrm = true 
)
inlineexplicitprotected

Default constructor.

Parameters
[in]configType: The source config type.
[in]mimeType: The mime type string.
[in]hasDrm: Information if source will use drm

The documentation for this class was generated from the following file: