Pepper_37_C++_interfaces
|
#include <media_source_samsung.h>
Public Member Functions | |
MediaSource_Samsung () | |
MediaSource_Samsung (const InstanceHandle &instance) | |
Cretes MediaSource_Samsung resource for given |instance|. More... | |
virtual | ~MediaSource_Samsung () |
Destructor. More... | |
int32_t | BindToHTMLPlayer (const Var &id, const CompletionCallback &callback) |
PPB_MediaSource_Samsung API. More... | |
int32_t | AddSource (const Var &type, const Var &codecs, const CompletionCallbackWithOutput< SourceBuffer_Samsung > &callback) |
int32_t | RemoveSource (const SourceBuffer_Samsung &sourceBuffer, const CompletionCallback &callback) |
Removes given source. More... | |
int32_t | SetDuration (PP_MicrosecondsDelta duration, const CompletionCallback &callback) |
int32_t | GetDuration (const CompletionCallbackWithOutput< PP_MicrosecondsDelta > &callback) |
Gets duration in microseconds of currently played stream. More... | |
int32_t | SetEndOfStream (PP_SourceEndedStatus error, const CompletionCallback &callback) |
int32_t | GetMediaTime (const CompletionCallbackWithOutput< PP_MicrosecondsDelta > &callback) |
Gets a current time of media. More... | |
int32_t | GetReadyState (const CompletionCallbackWithOutput< PP_MediaReadyState > &callback) |
Gets a ReadyState of media. More... | |
virtual void | Error (const SourceBuffer_Samsung &source, PP_SourceError reason)=0 |
PPP_MediaSource_Samsung API. More... | |
virtual void | SourceOpen ()=0 |
Signals activation of given data source. More... | |
virtual void | SourceEnded ()=0 |
virtual void | SourceClose ()=0 |
Signals unattached data source to a media element. More... | |
virtual void | AppendEnd (const SourceBuffer_Samsung &source)=0 |
Signals error during processing given data source (e.g. decoding error). More... | |
![]() | |
virtual | ~MediaControl_Samsung () |
Destructor. More... | |
virtual void | Play (PP_MicrosecondsDelta timestamp)=0 |
virtual void | Pause ()=0 |
virtual void | Ended (PP_MediaError error)=0 |
virtual void | Seeking (PP_MicrosecondsDelta seekTime)=0 |
Method called when played media playback time has been changed explicitly. More... | |
virtual void | DurationChange (PP_MicrosecondsDelta duration)=0 |
virtual void | TimeUpdate (PP_MicrosecondsDelta media_time)=0 |
virtual void | RateChange (float playback_rate)=0 |
Method called when media playback rate is changed. More... | |
![]() | |
Resource () | |
The default constructor. More... | |
Resource (const Resource &other) | |
virtual | ~Resource () |
Destructor. More... | |
Resource & | operator= (const Resource &other) |
bool | is_null () const |
PP_Resource | pp_resource () const |
PP_Resource | detach () |
Additional Inherited Members | |
![]() | |
MediaControl_Samsung () | |
![]() | |
Resource (PP_Resource resource) | |
Resource (PassRef, PP_Resource resource) | |
void | PassRefFromConstructor (PP_Resource resource) |
void | Clear () |
Sets this resource to null. This releases ownership of the resource. More... | |
Interface used by PNaCl application to provide chunks of multimedia data to the platform. Those chunks will be decoded and played by the platform.
This interface inherits from PPB_MediaControl_Samsung.
API is similar to one defined in JavaScript's Media Source Extensions
Definition at line 26 of file media_source_samsung.h.
|
inline |
Definition at line 29 of file media_source_samsung.h.
|
explicit |
Cretes MediaSource_Samsung resource for given |instance|.
|
inlinevirtual |
Destructor.
Definition at line 35 of file media_source_samsung.h.
int32_t pp::MediaSource_Samsung::AddSource | ( | const Var & | type, |
const Var & | codecs, | ||
const CompletionCallbackWithOutput< SourceBuffer_Samsung > & | callback | ||
) |
Adds source to the media source element. Added source is container of type |type| encoded using codecs on |codecs| list.
Returns status - PP_SourceAddStatus and |sourceBuffer| if status is OK.
|
pure virtual |
Signals error during processing given data source (e.g. decoding error).
int32_t pp::MediaSource_Samsung::BindToHTMLPlayer | ( | const Var & | id, |
const CompletionCallback & | callback | ||
) |
PPB_MediaSource_Samsung API.
Binds given MediaSource to vide/audio object of given |id| present on HTML page on which given module is embedded.
|
pure virtual |
PPP_MediaSource_Samsung API.
Signals error during processing given data source (e.g. decoding error).
int32_t pp::MediaSource_Samsung::GetDuration | ( | const CompletionCallbackWithOutput< PP_MicrosecondsDelta > & | callback | ) |
Gets duration in microseconds of currently played stream.
int32_t pp::MediaSource_Samsung::GetMediaTime | ( | const CompletionCallbackWithOutput< PP_MicrosecondsDelta > & | callback | ) |
Gets a current time of media.
int32_t pp::MediaSource_Samsung::GetReadyState | ( | const CompletionCallbackWithOutput< PP_MediaReadyState > & | callback | ) |
Gets a ReadyState of media.
int32_t pp::MediaSource_Samsung::RemoveSource | ( | const SourceBuffer_Samsung & | sourceBuffer, |
const CompletionCallback & | callback | ||
) |
Removes given source.
int32_t pp::MediaSource_Samsung::SetDuration | ( | PP_MicrosecondsDelta | duration, |
const CompletionCallback & | callback | ||
) |
Sets duration in microseconds of currently played stream duration is given in microseconds
int32_t pp::MediaSource_Samsung::SetEndOfStream | ( | PP_SourceEndedStatus | error, |
const CompletionCallback & | callback | ||
) |
Sets end of stream. |error| argument represents whether it is just end of the stream (PP_MEDIAERROR_NO_ERROR) or some kind of error occured.
|
pure virtual |
Signals unattached data source to a media element.
|
pure virtual |
Called when source is still attached to a media element, but endOfStream() has been called.
|
pure virtual |
Signals activation of given data source.