MediaPlayer.VideoFrameAvailable MediaPlayer.VideoFrameAvailable MediaPlayer.VideoFrameAvailable MediaPlayer.VideoFrameAvailable MediaPlayer.VideoFrameAvailable Event

Definition

Occurs when IsVideoFrameServerEnabled is set to true and a new video frame is available for processing.

public : event TypedEventHandler<MediaPlayer, object> VideoFrameAvailable
// Register
event_token VideoFrameAvailable(TypedEventHandler<MediaPlayer, object> const& handler) const;

// Revoke with event_token
void VideoFrameAvailable(event_token const& cookie) const;

// Revoke with event_revoker
VideoFrameAvailable_revoker VideoFrameAvailable(auto_revoke_t, TypedEventHandler<MediaPlayer, object> const& handler) const;
public event TypedEventHandler<MediaPlayer, object> VideoFrameAvailable
Public Event VideoFrameAvailable As TypedEventHandler (Of MediaPlayer, object)
function onVideoFrameAvailable(eventArgs){/* Your code */}


mediaPlayer.addEventListener("videoframeavailable", onVideoFrameAvailable);
mediaPlayer.removeEventListener("videoframeavailable", onVideoFrameAvailable);

Remarks

In the handler for this event, call CopyFrameToVideoSurface to get the video frame data.