|
NaCl Player API
NaCl Player API Documentation
|
#include <url_data_source.h>


Public Member Functions | |
| URLDataSource (const std::string &url) | |
| URLDataSource (const URLDataSource &other) | |
| URLDataSource & | operator= (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) | |
| MediaDataSource & | operator= (const MediaDataSource &other) |
Protected Member Functions | |
| MediaDataSource::Impl * | impl () const |
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.
|
explicit |
Creates Data Source which is able to download data form media clip from |url| provided.
| 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).
| [in] | type | A StreamingProperty to get |
| [in] | callback | A callback to be called upon completion. |
ErrorCodes::Success on success, otherwise an error code from ErrorCodes. | 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).
For detailed description
| 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.
| [in] | type | A StreamingProperty to set |
| [in] | value | New value of the property, see description of StreamingProperty what is requested format. |
| [in] | callback | A callback to be called upon completion. |
ErrorCodes::Success on success, otherwise an error code from ErrorCodes. | 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).
For detailed description