NaCl Player API
NaCl Player API Documentation
Samsung::NaClPlayer::URLDataSource Class Reference

#include <url_data_source.h>

Inheritance diagram for Samsung::NaClPlayer::URLDataSource:
Collaboration diagram for Samsung::NaClPlayer::URLDataSource:

Public Member Functions

 URLDataSource (const std::string &url)
 
 URLDataSource (const URLDataSource &other)
 
URLDataSourceoperator= (const URLDataSource &other)
 
int32_t GetStreamingProperty (StreamingProperty type, const std::function< void(int32_t, const std::string &)> &callback)
 
int32_t GetStreamingProperty (StreamingProperty type, std::string &value)
 
int32_t SetStreamingProperty (StreamingProperty type, const std::string &value, const std::function< void(int32_t)> &callback)
 
int32_t SetStreamingProperty (StreamingProperty type, const std::string &value)
 
- Public Member Functions inherited from Samsung::NaClPlayer::MediaDataSource
 MediaDataSource (const MediaDataSource &other)
 
MediaDataSourceoperator= (const MediaDataSource &other)
 

Protected Member Functions

MediaDataSource::Impl * impl () const
 

Detailed Description

Class representing Data Source handling media passed as URLs.

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

Definition at line 40 of file url_data_source.h.

Constructor & Destructor Documentation

◆ URLDataSource()

Samsung::NaClPlayer::URLDataSource::URLDataSource ( const std::string &  url)
explicit

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

Member Function Documentation

◆ GetStreamingProperty() [1/2]

int32_t Samsung::NaClPlayer::URLDataSource::GetStreamingProperty ( StreamingProperty  type,
const std::function< void(int32_t, const std::string &)> &  callback 
)

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

Parameters
[in]typeA StreamingProperty to get
[in]callbackA callback to be called upon completion.
Returns
ErrorCodes::Success on success, otherwise an error code from ErrorCodes.

◆ GetStreamingProperty() [2/2]

int32_t Samsung::NaClPlayer::URLDataSource::GetStreamingProperty ( StreamingProperty  type,
std::string &  value 
)

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

Warning
This method can't be called from the main thread.

For detailed description

See also
GetStreamingProperty(..., callback).

◆ SetStreamingProperty() [1/2]

int32_t Samsung::NaClPlayer::URLDataSource::SetStreamingProperty ( StreamingProperty  type,
const std::string &  value,
const std::function< void(int32_t)> &  callback 
)

Sets the value for a 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 StreamingProperty to set
[in]valueNew value of the property, see description of StreamingProperty what is requested format.
[in]callbackA callback to be called upon completion.
Returns
ErrorCodes::Success on success, otherwise an error code from ErrorCodes.

◆ SetStreamingProperty() [2/2]

int32_t Samsung::NaClPlayer::URLDataSource::SetStreamingProperty ( StreamingProperty  type,
const std::string &  value 
)

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

Warning
This method can't be called from the main thread.

For detailed description

See also
SetStreamingProperty(..., callback).

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