Pepper_37_C++_interfaces
Public Member Functions | List of all members
pp::SourceBuffer_Samsung Class Reference

#include <source_buffer_samsung.h>

Inheritance diagram for pp::SourceBuffer_Samsung:
Inheritance graph
Collaboration diagram for pp::SourceBuffer_Samsung:
Collaboration graph

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...
 
- Public Member Functions inherited from pp::Resource
 Resource ()
 The default constructor. More...
 
 Resource (const Resource &other)
 
virtual ~Resource ()
 Destructor. More...
 
Resourceoperator= (const Resource &other)
 
bool is_null () const
 
PP_Resource pp_resource () const
 
PP_Resource detach ()
 

Additional Inherited Members

- Protected Member Functions inherited from pp::Resource
 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...
 

Detailed Description

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.

Constructor & Destructor Documentation

pp::SourceBuffer_Samsung::SourceBuffer_Samsung ( )
inline

Definition at line 25 of file source_buffer_samsung.h.

pp::SourceBuffer_Samsung::SourceBuffer_Samsung ( const Resource resource)
explicit
pp::SourceBuffer_Samsung::SourceBuffer_Samsung ( PP_Resource  resource)
explicit
pp::SourceBuffer_Samsung::SourceBuffer_Samsung ( PassRef  ,
PP_Resource  resource 
)
explicit
virtual pp::SourceBuffer_Samsung::~SourceBuffer_Samsung ( )
inlinevirtual

Destructor.

Definition at line 33 of file source_buffer_samsung.h.

Member Function Documentation

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|.


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