mediastreamer2  2.10.0
Typedefs | Functions
Video streaming API - Create and run video streams.

Video streaming API - Easily run video streams from camera capture or static picture files to RTP. More...

Typedefs

typedef VideoStream VideoPreview
 

Functions

MSVideoSize video_stream_get_sent_video_size (const VideoStream *stream)
 
MSVideoSize video_stream_get_received_video_size (const VideoStream *stream)
 
int video_stream_get_camera_sensor_rotation (VideoStream *stream)
 Gets the camera sensor rotation. More...
 

Detailed Description

Video streaming API - Easily run video streams from camera capture or static picture files to RTP.

Typedef Documentation

typedef VideoStream VideoPreview

Small API to display a local preview window.

Function Documentation

MSVideoSize video_stream_get_sent_video_size ( const VideoStream *  stream)

Gets the size of the video that is sent.

Parameters
[in]streamThe videostream for which to get the sent video size.
Returns
The sent video size or MS_VIDEO_SIZE_UNKNOWN if not available.
MSVideoSize video_stream_get_received_video_size ( const VideoStream *  stream)

Gets the size of the video that is received.

Parameters
[in]streamThe videostream for which to get the received video size.
Returns
The received video size or MS_VIDEO_SIZE_UNKNOWN if not available.
int video_stream_get_camera_sensor_rotation ( VideoStream *  stream)

Gets the camera sensor rotation.

This is needed on some mobile platforms to get the number of degrees the camera sensor is rotated relative to the screen.

Parameters
streamThe video stream related to the operation
Returns
The camera sensor rotation in degrees (0 to 360) or -1 if it could not be retrieved