Pepper_56_C_interfaces
Pepper_56_C_interfaces
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
PPB_URLDataSource_Samsung_1_0 Struct Reference

#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)
 

Detailed Description

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.

Member Data Documentation

PP_Resource(* PPB_URLDataSource_Samsung_1_0::Create)(PP_Instance instance, const char *url)

Creates a new URL data source resource.

Parameters
[in]instanceA PP_Instance identifying the instance with the URL data source.
[in]urlAn URL identifying media clip fetched by data source.
Returns
A 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).

Parameters
[in]resourceA PP_Resource identifying a resource.
[in]typeA PP_StreamingProperty to get
[out]valueValue of the property, see description of PP_StreamingProperty what is requested format.
[in]callbackA PP_CompletionCallback to be called upon completion.
Returns
PP_OK on success, otherwise an error code from pp_errors.h.
PP_Bool(* PPB_URLDataSource_Samsung_1_0::IsURLDataSource)(PP_Resource resource)

Determines if the given resource is an URL data source.

Parameters
[in]resourceA PP_Resource identifying a resource.
Returns
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.

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

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