Pepper_47_C++_interfaces
Public Member Functions | List of all members
pp::URLDataSource_Samsung Class Reference

#include <url_data_source_samsung.h>

Inheritance diagram for pp::URLDataSource_Samsung:
Inheritance graph
Collaboration diagram for pp::URLDataSource_Samsung:
Collaboration graph

Public Member Functions

 URLDataSource_Samsung (const InstanceHandle &instance, const std::string &url)
 
 URLDataSource_Samsung (const URLDataSource_Samsung &other)
 
 URLDataSource_Samsung (PP_Resource resource)
 
 URLDataSource_Samsung (PassRef, PP_Resource resource)
 
URLDataSource_Samsungoperator= (const URLDataSource_Samsung &other)
 
virtual ~URLDataSource_Samsung ()
 
int32_t GetStreamingProperty (PP_StreamingProperty type, const CompletionCallbackWithOutput< pp::Var > &callback)
 
int32_t SetStreamingProperty (PP_StreamingProperty type, const Var &value, const CompletionCallback &callback)
 
- Public Member Functions inherited from pp::MediaDataSource_Samsung
 MediaDataSource_Samsung (const MediaDataSource_Samsung &other)
 
MediaDataSource_Samsungoperator= (const MediaDataSource_Samsung &other)
 
virtual ~MediaDataSource_Samsung ()
 
- 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::MediaDataSource_Samsung
 MediaDataSource_Samsung ()
 
 MediaDataSource_Samsung (const Resource &data_source)
 
 MediaDataSource_Samsung (PP_Resource resource)
 
 MediaDataSource_Samsung (PassRef, PP_Resource resource)
 
- 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

Class representing Data Source handling media passed as URLs.

After creation data source can be attached to the MediaPlayer_Samsung. When attaching to the player passed URL is validated and buffering starts.

Definition at line 31 of file url_data_source_samsung.h.

Constructor & Destructor Documentation

pp::URLDataSource_Samsung::URLDataSource_Samsung ( const InstanceHandle instance,
const std::string &  url 
)

Creates Data Source which is able to download data form media clip from |url| provided.

Definition at line 21 of file url_data_source_samsung.cc.

References pp::Resource::PassRefFromConstructor(), and pp::InstanceHandle::pp_instance().

pp::URLDataSource_Samsung::URLDataSource_Samsung ( const URLDataSource_Samsung other)

Definition at line 29 of file url_data_source_samsung.cc.

pp::URLDataSource_Samsung::URLDataSource_Samsung ( PP_Resource  resource)
explicit

Definition at line 33 of file url_data_source_samsung.cc.

pp::URLDataSource_Samsung::URLDataSource_Samsung ( PassRef  ,
PP_Resource  resource 
)

Definition at line 37 of file url_data_source_samsung.cc.

pp::URLDataSource_Samsung::~URLDataSource_Samsung ( )
virtual

Definition at line 47 of file url_data_source_samsung.cc.

Member Function Documentation

int32_t pp::URLDataSource_Samsung::GetStreamingProperty ( PP_StreamingProperty  type,
const CompletionCallbackWithOutput< pp::Var > &  callback 
)

Gets the value for specific Feature in the HTTP, MMS & Streaming Engine (Smooth Streaming, HLS, DASH, DivX Plus Streaming, Widevine).

Parameters
[in]typeA PP_StreamingProperty to gett
[in]callbackA CompletionCallbackWithOutput to be called upon completion.
Returns
PP_OK on success, otherwise an error code from pp_errors.h.

Definition at line 50 of file url_data_source_samsung.cc.

References pp::CompletionCallback::MayForce(), pp::CompletionCallbackWithOutput< T >::output(), pp::CompletionCallback::pp_completion_callback(), and pp::Resource::pp_resource().

URLDataSource_Samsung & pp::URLDataSource_Samsung::operator= ( const URLDataSource_Samsung other)
int32_t pp::URLDataSource_Samsung::SetStreamingProperty ( PP_StreamingProperty  type,
const Var value,
const CompletionCallback callback 
)

Sets the value for specific Feature in the HTTP, MMS & Streaming Engine (Smooth Streaming, HLS, DASH, DivX Plus Streaming, Widevine).

When special setting is required in Streaming Engine for the Start Bitrate setting or specific Content Protection (CP), the CUSTOM_MESSAGE Property can be set.

Parameters
[in]typeA PP_StreamingProperty to set
[in]valueNew value of the property, see desciprion of PP_StreamingProperty what is requested format.
[in]callbackA CompletionCallback to be called upon completion.
Returns
PP_OK on success, otherwise an error code from pp_errors.h.

Definition at line 62 of file url_data_source_samsung.cc.

References pp::CompletionCallback::MayForce(), pp::CompletionCallback::pp_completion_callback(), pp::Resource::pp_resource(), and pp::Var::pp_var().


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