Pepper_37_C++_interfaces
|
#include <source_buffer_samsung.h>
Public Member Functions | |
SourceBuffer_Samsung () | |
SourceBuffer_Samsung (const Resource &resource) | |
SourceBuffer_Samsung (PP_Resource resource) | |
SourceBuffer_Samsung (PassRef, PP_Resource resource) | |
virtual | ~SourceBuffer_Samsung () |
Destructor. More... | |
int32_t | IsSourceActive (const CompletionCallbackWithOutput< PP_Bool > &callback) |
PPB_SourceBuffer_Samsung API. More... | |
int32_t | Append (const void *data, uint32_t bytes_to_append, const CompletionCallback &callback) |
int32_t | Abort (const CompletionCallback &callback) |
int32_t | SetTimestampOffset (PP_MicrosecondsDelta offset, const CompletionCallback &callback) |
int32_t | GetTimestampOffset (const CompletionCallbackWithOutput< PP_MicrosecondsDelta > &callback) |
Gets offset in microseconds of selected stream. The execution may resume from the |callback|. More... | |
int32_t | ReadTimeRanges (const CompletionCallbackWithOutput< std::vector< PP_TimeRange > > &callback) |
ReadS ranges of buffered media stream. The execution may resume from the |callback|. 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 | |
![]() | |
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.
API is similar to one defined in JavaScript's Media Source Extensions
Definition at line 22 of file source_buffer_samsung.h.
|
inline |
Definition at line 25 of file source_buffer_samsung.h.
|
explicit |
|
explicit |
|
explicit |
|
inlinevirtual |
Destructor.
Definition at line 33 of file source_buffer_samsung.h.
int32_t pp::SourceBuffer_Samsung::Abort | ( | const CompletionCallback & | callback | ) |
Aborts given data source Execution is confirmed by a call to |callback|.
int32_t pp::SourceBuffer_Samsung::Append | ( | const void * | data, |
uint32_t | bytes_to_append, | ||
const CompletionCallback & | callback | ||
) |
Appends data to given buffer. Execution is confirmed by a call to |callback|.
int32_t pp::SourceBuffer_Samsung::GetTimestampOffset | ( | const CompletionCallbackWithOutput< PP_MicrosecondsDelta > & | callback | ) |
Gets offset in microseconds of selected stream. The execution may resume from the |callback|.
int32_t pp::SourceBuffer_Samsung::IsSourceActive | ( | const CompletionCallbackWithOutput< PP_Bool > & | callback | ) |
PPB_SourceBuffer_Samsung API.
Checks if given source is active i.e. it contains video, audio or text (subtitle) track being played. The execution may resume from the |callback|.
int32_t pp::SourceBuffer_Samsung::ReadTimeRanges | ( | const CompletionCallbackWithOutput< std::vector< PP_TimeRange > > & | callback | ) |
ReadS ranges of buffered media stream. The execution may resume from the |callback|.
int32_t pp::SourceBuffer_Samsung::SetTimestampOffset | ( | PP_MicrosecondsDelta | offset, |
const CompletionCallback & | callback | ||
) |
Sets a time offset (in microseconds) to be applied to subsequent buffers appended to the given buffer. The execution may resume from the |callback|.