MillicastSDK 2.0.0
Loading...
Searching...
No Matches
Instance Methods | List of all members
MCVideoSource Class Reference

Responsible for managing video sources. More...

#import <source.h>

Inheritance diagram for MCVideoSource:
Inheritance graph
[legend]
Collaboration diagram for MCVideoSource:
Collaboration graph
[legend]

Instance Methods

(NSArray< MCVideoCapabilities * > *) - getCapabilities
 
(void) - setCapability:
 
(void) - changeVideoSource:
 
(void) - changeVideoSource:ascending:
 
 capabilities
 
 initWithCppSource:
 
- Instance Methods inherited from MCSource
(MCSourceType) - getType
 
(NSString *) - getName
 
(NSString *) - getUniqueId
 
(NSString *) - getTypeAsString
 
- Instance Methods inherited from <CaptureSource>
(MCTrack *) - startCapture
 
(void) - stopCapture
 Stops a capture and releases the track and the underlying devices.
 
(bool) - isCapturing
 

Detailed Description

Responsible for managing video sources.

Method Documentation

◆ changeVideoSource:

- (void) changeVideoSource: (bool)  ascending

Change the underlying video source. For example in the case of a Camera, switch between front/rear camera.

  • Parameters:
    • ascending: The direction in which to switch the sources.

◆ changeVideoSource:ascending:

- (void) changeVideoSource: (bool) 
ascending: (NSString *)  deviceId 

Changes the current video source to a new source based on the provided device ID, for example if there is an external camera connected and a device ID is known.

  • Parameters:
    • ascending: The direction in which to switch the sources.
    • deviceId: The device ID.

◆ getCapabilities

- (NSArray< MCVideoCapabilities * > *) getCapabilities

The current set of capabilities configured for the video source.

  • Returns: An array of video capabilities of the video device.

◆ setCapability:

- (void) setCapability: (MCVideoCapabilities *)  cap

Enable a specific video capability on the video source.

  • Parameters:
    • cap: The video capability.

The documentation for this class was generated from the following file: