OpenTok.IVideoFrameConsumer

public interface IVideoFrameConsumer

Methods

Name Description
Consume(frame) Called whenever a frame is made available to the video frame consumer.
Consume(frame, orientation) Called whenever a frame is made available to the video frame consumer.
GetVideoContentHint() → {VideoContentHint} This method will return the current value of video content hint.
SetVideoContentHint(contentHint) This method will set the video content hint to one of the enum values given in VideoContentHint.

Consume(frame)

Called whenever a frame is made available to the video frame consumer.

Parameters:
Name Type Description
frame VideoFrame

Consume(frame, orientation)

Called whenever a frame is made available to the video frame consumer. Use this method to add orientation information to the frame.

Parameters:
Name Type Description
frame VideoFrame
orientation int

GetVideoContentHint() → {VideoContentHint}

This method will return the current value of video content hint.

Returns:

VideoContentHint

SetVideoContentHint(contentHint)

This method will set the video content hint to one of the enum values given in VideoContentHint. By default it will be set to NONE.

Parameters:
Name Type Description
contentHint VideoContentHint