Pepper_56_C_interfaces
Pepper_56_C_interfaces
|
#include <ppb_media_data_source_samsung.h>
Public Attributes | |
PP_Resource(* | Create )(PP_Instance instance, const char *url) |
PP_Bool(* | IsURLDataSource )(PP_Resource resource) |
int32_t(* | GetStreamingProperty )(PP_Resource resource, PP_StreamingProperty type, struct PP_Var *value, struct PP_CompletionCallback callback) |
int32_t(* | SetStreamingProperty )(PP_Resource resource, PP_StreamingProperty type, struct PP_Var value, struct PP_CompletionCallback callback) |
Data Source handling media passed as URLs in Create method, derives from PPB_MediaDataSource_Samsung.
After creation data source can be attached to the player. When attaching to the player passed URL is validated and buffering starts.
PP_Resource(* PPB_URLDataSource_Samsung_1_0::Create)(PP_Instance instance, const char *url) |
Creates a new URL data source resource.
[in] | instance | A PP_Instance identifying the instance with the URL data source. |
[in] | url | An URL identifying media clip fetched by data source. |
PP_Resource
corresponding to a URL data source if successful or 0 otherwise. int32_t(* PPB_URLDataSource_Samsung_1_0::GetStreamingProperty)(PP_Resource resource, PP_StreamingProperty type, struct PP_Var *value, struct PP_CompletionCallback callback) |
Gets the value for specific Feature in the HTTP, MMS & Streaming Engine (Smooth Streaming, HLS, DASH, DivX Plus Streaming, Widevine).
[in] | resource | A PP_Resource identifying a resource. |
[in] | type | A PP_StreamingProperty to get |
[out] | value | Value of the property, see description of PP_StreamingProperty what is requested format. |
[in] | callback | A PP_CompletionCallback to be called upon completion. |
pp_errors.h
. PP_Bool(* PPB_URLDataSource_Samsung_1_0::IsURLDataSource)(PP_Resource resource) |
Determines if the given resource is an URL data source.
[in] | resource | A PP_Resource identifying a resource. |
PP_TRUE
if the resource is a PPB_URLDataSource_Samsung
, PP_FALSE
if the resource is invalid or some other type. int32_t(* PPB_URLDataSource_Samsung_1_0::SetStreamingProperty)(PP_Resource resource, PP_StreamingProperty type, struct PP_Var value, struct PP_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 itrate setting or specific Content Protection (CP), the CUSTOM_MESSAGE Property can be set.
[in] | resource | A PP_Resource identifying a resource. |
[in] | type | A PP_StreamingProperty to set |
[in] | value | New value of the property, see description of PP_StreamingProperty what is requested format. |
[in] | callback | A PP_CompletionCallback to be called upon completion. |
pp_errors.h
.