Pepper_47_C_interfaces
|
#include <ppb_video_source_private.h>
Public Attributes | |
PP_Resource(* | Create )(PP_Instance instance) |
PP_Bool(* | IsVideoSource )(PP_Resource resource) |
int32_t(* | Open )(PP_Resource source, struct PP_Var stream_url, struct PP_CompletionCallback callback) |
int32_t(* | GetFrame )(PP_Resource source, struct PP_VideoFrame_Private *frame, struct PP_CompletionCallback callback) |
void(* | Close )(PP_Resource source) |
The PPB_VideoSource_Private
interface contains pointers to several functions for creating video source resources and using them to receive video frames from a MediaStream video track in the browser.
Definition at line 43 of file ppb_video_source_private.h.
void(* PPB_VideoSource_Private_0_1::Close)(PP_Resource source) |
Closes the video source.
[in] | source | A PP_Resource corresponding to a video source resource. |
Definition at line 109 of file ppb_video_source_private.h.
PP_Resource(* PPB_VideoSource_Private_0_1::Create)(PP_Instance instance) |
Creates a video source resource.
[in] | instance | A PP_Instance identifying an instance of a module. |
PP_Resource
with a nonzero ID on success or zero on failure. Failure means the instance was invalid. Definition at line 53 of file ppb_video_source_private.h.
int32_t(* PPB_VideoSource_Private_0_1::GetFrame)(PP_Resource source, struct PP_VideoFrame_Private *frame, struct PP_CompletionCallback callback) |
Gets a frame from the video source. The returned image data is only valid until the next call to GetFrame. The image data resource inside the returned frame will have its reference count incremented by one and must be managed by the plugin.
[in] | source | A PP_Resource corresponding to a video source resource. |
[out] | frame | A PP_VideoFrame_Private to hold a video frame from the source. |
[in] | callback | A PP_CompletionCallback to be called upon completion of GetNextFrame(). |
pp_errors.h
. Returns PP_ERROR_BADRESOURCE if source isn't a valid video source. Returns PP_ERROR_FAILED if the source is not open, or if some other browser error occurs. Definition at line 100 of file ppb_video_source_private.h.
PP_Bool(* PPB_VideoSource_Private_0_1::IsVideoSource)(PP_Resource resource) |
Determines if a resource is a video source resource.
[in] | resource | The PP_Resource to test. |
PP_Bool
with PP_TRUE
if the given resource is a video source resource or PP_FALSE
otherwise. Definition at line 62 of file ppb_video_source_private.h.
int32_t(* PPB_VideoSource_Private_0_1::Open)(PP_Resource source, struct PP_Var stream_url, struct PP_CompletionCallback callback) |
Opens a video source for getting frames.
[in] | source | A PP_Resource corresponding to a video source resource. |
[in] | stream_url | A PP_Var string holding a URL identifying a MediaStream. |
[in] | callback | A PP_CompletionCallback to be called upon completion of Open(). |
pp_errors.h
. Returns PP_ERROR_BADRESOURCE if source isn't a valid video source. Returns PP_ERROR_INPROGRESS if source is already open. Returns PP_ERROR_FAILED if the MediaStream doesn't exist or if there is some other browser error. Definition at line 79 of file ppb_video_source_private.h.