Pepper_42_C++_interfaces
|
#include <es_data_source_samsung.h>
Additional Inherited Members | |
![]() | |
MediaDataSource_Samsung () | |
MediaDataSource_Samsung (const Resource &data_source) | |
MediaDataSource_Samsung (PP_Resource resource) | |
MediaDataSource_Samsung (PassRef, PP_Resource 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... | |
Data source handling appends of Elementary Streams.
It is a container for Elementary Streams (audio/video) and there can be at most one stream of given type (see PP_ElementaryStream_Type_Samsung
). Basic usage (playback of clip containing audio and video):
AddStream<T> with argument being callback accepting AudioElementryStream_Samsung
.
Configure audio stream, by setting codec, sampling rate, channels and other necessary information.
Call ElementaryStream_Samsung.InitializeDone
to confirm the configuration
Add video stream using AddStream<T> with argument being callback accepting VideoElementryStream_Samsung
.
Configure video stream, by setting codec, frame rate, resolution and other necessary information.
Call ElementaryStream_Samsung.InitializeDone
to confirm the configuration.
Attach data source to the player by calling MediaPlayer_Samsung.AttachMediaSource
.
Download and append Elementary Stream audio and video packets by calling ElementaryStream._SamsungAppendPacket
Signalize end of stream (clip) by calling
SetEndOfStream
MediaPlayer_Samsung.AttachMediaSource
with NULL
object/resource. Definition at line 300 of file es_data_source_samsung.h.
|
explicit |
pp::ESDataSource_Samsung::ESDataSource_Samsung | ( | const ESDataSource_Samsung & | other | ) |
|
explicit |
pp::ESDataSource_Samsung::ESDataSource_Samsung | ( | PassRef | , |
PP_Resource | resource | ||
) |
|
virtual |
|
inline |
Factory method which adds stream of given type to the data source.
Type T must be one of concrete types inheriting form ElementaryStream_Samsung
This data source can handle at most one buffer of given time, so calling multiple times this method with the same buffer type will return the same resource as all previous calls.
[in] | callback | A CompletionCallbackWithOutput to be called upon completion with added elementary stream. |
pp_errors.h
. FIXME: remove listener default value once all related components will be updated to use new ElementaryStreamListener_Samsung listener. Definition at line 420 of file es_data_source_samsung.h.
References pp::CompletionCallbackWithOutput< T >::output(), and PP_MEDIA_PLAYER_SAMSUNG_STATIC_ASSERT.
ESDataSource_Samsung& pp::ESDataSource_Samsung::operator= | ( | const ESDataSource_Samsung & | other | ) |
int32_t pp::ESDataSource_Samsung::SetDuration | ( | PP_TimeDelta | duration, |
const CompletionCallback & | callback | ||
) |
Sets duration of the whole stream/container/clip.
[in] | duration | A duration of played media. |
[in] | callback | A CompletionCallback to be called upon completion. |
pp_errors.h
. int32_t pp::ESDataSource_Samsung::SetEndOfStream | ( | const CompletionCallback & | callback | ) |
Signalizes end of the whole stream/container/clip.
[in] | callback | A CompletionCallback to be called upon completion. |
pp_errors.h
.