Objective-C

Selecting the camera used by a publisher

You can specify (or change) the camera used to publish a stream:

Note that the cameraPosition property is not available in the OTPublisherKit class. If you are using the OTPublisherKit class to implement a custom video capturer, you can define the camera used in the custom video capturing code.

Detecting when the publisher's camera changes

When the camera used to publish a stream changes, the publisher delegate sends an [OTPublisher publisher:didChangeCameraPosition:] message:

Setting the resolution and frame rate for a video

You can set the resolution and frame rate for a publisher's stream by setting the cameraResolution and cameraFrameRate properties of the OTPublisherSettings object you pass into the [OTPublisher initWithDelegate:settings:] method:

Note that in sessions that use the Vonage Video Media Router (sessions with the media mode set to routed), lowering the frame rate proportionally reduces the bandwidth the stream uses. However, in sessions that have the media mode set to relayed, lowering the frame rate does not reduce the stream's bandwidth.

Using a custom video capturer

The OTPublisher class captures video from a camera on the iOS device. You can use the custom video stream API to define a custom video capturer, using the OTPublisherKit and OTVideoCapture classes.

You can also use a custom video renderer for videos.

Adjusting audio and video

Learn more about manipulating audio and video of Vonage Video API streams for your application. Publish only video or audio, adjust the frame rate, and more.

Steps
1
Introduction
2
Prerequisites
3
Adjusting audio and video
4
Adjusting video settings
5
Adjusting audio settings
6
Subscribing to audio or video only
7
Detecting audio or video - iOS
8
What's next?