Pepper_31_C_interfaces
Public Attributes | List of all members
PPB_MediaSource_Samsung_0_9 Struct Reference

#include <ppb_media_source_samsung.h>

Collaboration diagram for PPB_MediaSource_Samsung_0_9:
Collaboration graph

Public Attributes

PP_Resource(* Create )(PP_Instance instance, const struct PPP_MediaControl_Samsung_0_9 *media_control_interface, const struct PPP_MediaSource_Samsung_0_9 *media_source_interface, void *user_data)
 
PP_Bool(* IsMediaSource )(PP_Resource resource)
 
PP_Bool(* BindToHTMLPlayer )(PP_Resource media, struct PP_Var id)
 
PP_SourceAddStatus(* AddSource )(PP_Resource media, struct PP_Var type, struct PP_Var codecs, struct PP_Var *id)
 
PP_Bool(* IsSourceActive )(PP_Resource media, struct PP_Var id)
 
void(* RemoveSource )(PP_Resource media, struct PP_Var id)
 
void(* Append )(PP_Resource media, struct PP_Var id, PP_Resource data)
 
void(* Abort )(PP_Resource media, struct PP_Var id)
 
void(* SetDuration )(PP_Resource media, PP_MicrosecondsDelta duration)
 
PP_MicrosecondsDelta(* GetDuration )(PP_Resource media)
 
void(* SetEndOfStream )(PP_Resource media, PP_MediaError error)
 
PP_Bool(* SetTimestampOffset )(PP_Resource media, struct PP_Var id, PP_MicrosecondsDelta offset)
 
PP_Bool(* ReadTimeRanges )(PP_Resource media, struct PP_Var id, struct PP_ArrayOutput output)
 
PP_MicrosecondsDelta(* GetMediaTime )(PP_Resource media)
 
PP_MediaReadyState(* GetReadyState )(PP_Resource media)
 

Detailed Description

Interface used by PNaCl appliction to provide chunks of multimedia data to the platform. Those chunks will be decoded and played by the platform.

This interface inherits from PPB_MediaControl_Samsung.

Definition at line 45 of file ppb_media_source_samsung.h.

Member Data Documentation

void(* PPB_MediaSource_Samsung_0_9::Abort)(PP_Resource media, struct PP_Var id)

Aborts given data source

Definition at line 91 of file ppb_media_source_samsung.h.

PP_SourceAddStatus(* PPB_MediaSource_Samsung_0_9::AddSource)(PP_Resource media, struct PP_Var type, struct PP_Var codecs, struct PP_Var *id)

Adds source for which data are appended using Append method. Added source is container of type |type| encoded using codecs on |codecs| list.

Returns status - PP_SourceAddStatus and |id| if status is OK.

Definition at line 74 of file ppb_media_source_samsung.h.

void(* PPB_MediaSource_Samsung_0_9::Append)(PP_Resource media, struct PP_Var id, PP_Resource data)

Appends data to given buffer (identified by |id|). |data| argument must be a handle to PPB_Buffer_Dev_0_4 instance.

Definition at line 89 of file ppb_media_source_samsung.h.

PP_Bool(* PPB_MediaSource_Samsung_0_9::BindToHTMLPlayer)(PP_Resource media, struct PP_Var id)

Binds given MediaSource to vide/audio object of given |id| present on HTML page on which given module is embedded.

Definition at line 67 of file ppb_media_source_samsung.h.

PP_Resource(* PPB_MediaSource_Samsung_0_9::Create)(PP_Instance instance, const struct PPP_MediaControl_Samsung_0_9 *media_control_interface, const struct PPP_MediaSource_Samsung_0_9 *media_source_interface, void *user_data)

Creates new instance of Media Source associated with both PPP inerfaces |media_control_interface| and |media_source_interface|.

|user_data| will be data passed to calls of methods from PPP_MediaControl_Samsung and PPP_MediaSource_Samsung interfaces.

Definition at line 53 of file ppb_media_source_samsung.h.

PP_MicrosecondsDelta(* PPB_MediaSource_Samsung_0_9::GetDuration)(PP_Resource media)

Gets duration in microseconds of currently played stream

Definition at line 95 of file ppb_media_source_samsung.h.

PP_MicrosecondsDelta(* PPB_MediaSource_Samsung_0_9::GetMediaTime)(PP_Resource media)

Gets a current time of media.

Definition at line 123 of file ppb_media_source_samsung.h.

PP_MediaReadyState(* PPB_MediaSource_Samsung_0_9::GetReadyState)(PP_Resource media)

Gets a ReadyState of media.

Definition at line 127 of file ppb_media_source_samsung.h.

PP_Bool(* PPB_MediaSource_Samsung_0_9::IsMediaSource)(PP_Resource resource)

Checks if given resource is Media Source. If this method returns PP_TRUE, then also PPB_MediaControl_Samsung.IsMediaControl will also return PP_TRUE.

Definition at line 62 of file ppb_media_source_samsung.h.

PP_Bool(* PPB_MediaSource_Samsung_0_9::IsSourceActive)(PP_Resource media, struct PP_Var id)

Checks if given source is active i.e. it contains video, audio or text (subtitle) track being played

Definition at line 82 of file ppb_media_source_samsung.h.

PP_Bool(* PPB_MediaSource_Samsung_0_9::ReadTimeRanges)(PP_Resource media, struct PP_Var id, struct PP_ArrayOutput output)

|output| - An output array which will receive PP_TimeRange structures on success.

The browser can not allocate memory on behalf of the plugin becaues the plugin and browser may have different allocators. A PP_ArrayOutput must be provided so that output will be stored in its allocated buffer.

Definition at line 117 of file ppb_media_source_samsung.h.

void(* PPB_MediaSource_Samsung_0_9::RemoveSource)(PP_Resource media, struct PP_Var id)

Removes source of given |id| and frees associated resources with it.

Definition at line 84 of file ppb_media_source_samsung.h.

void(* PPB_MediaSource_Samsung_0_9::SetDuration)(PP_Resource media, PP_MicrosecondsDelta duration)

Sets duration in microseconds of currently played stream

Definition at line 93 of file ppb_media_source_samsung.h.

void(* PPB_MediaSource_Samsung_0_9::SetEndOfStream)(PP_Resource media, PP_MediaError error)

Sets end of stream. |error| argument represents whether it is just end of the stream (PP_MEDIAERROR_NO_ERROR) or some kind of error occured.

Definition at line 100 of file ppb_media_source_samsung.h.

PP_Bool(* PPB_MediaSource_Samsung_0_9::SetTimestampOffset)(PP_Resource media, struct PP_Var id, PP_MicrosecondsDelta offset)

Sets a time offset (in microseconds) to be applied to subsequent buffers appended to the given buffer.

Definition at line 105 of file ppb_media_source_samsung.h.


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