IVSLocalStageStreamLayer
Objective-C
@interface IVSLocalStageStreamLayer : NSObject
Swift
class IVSLocalStageStreamLayer : NSObject
A configuration object describing simulcast layer configuration
-
The maximum bitrate for the layer.
Declaration
Objective-C
@property (nonatomic, readonly) NSInteger maxBitrate;
Swift
var maxBitrate: Int { get }
-
Sets the maximum bitrate for the layer. This value must be between 50k and 2,500k If the provided bitrate falls outside this range, bitrate will not be set and the provided outError will be set.
Declaration
Objective-C
- (BOOL)setMaxBitrate:(NSInteger)maxBitrate error:(NSError *_Nullable *_Nullable)outError;
Swift
func setMaxBitrate(_ maxBitrate: Int) throws
Parameters
maxBitrate
the maximum bitrate for the layer
outError
On input, a pointer to an error object. If an error occurs, the pointer is an NSError object that describes the error. If you don’t want error information, pass in nil.
Return Value
if the set operation is successful or not.
-
The minimum bitrate for the output video layer.
Declaration
Objective-C
@property (nonatomic, readonly) NSInteger minBitrate;
Swift
var minBitrate: Int { get }
-
Sets the minimum bitrate for the layer. This value must be between 50k and 2,500k If the provided bitrate falls outside this range, bitrate will not be set and the provided outError will be set.
Declaration
Objective-C
- (BOOL)setMinBitrate:(NSInteger)minBitrate error:(NSError *_Nullable *_Nullable)outError;
Swift
func setMinBitrate(_ minBitrate: Int) throws
Parameters
minBitrate
the minimum bitrate for the layer
outError
On input, a pointer to an error object. If an error occurs, the pointer is an NSError object that describes the error. If you don’t want error information, pass in nil.
Return Value
if the set operation is successful or not.
-
The resolution of the layer.
Declaration
Objective-C
@property (nonatomic, readonly) CGSize size;
Swift
var size: CGSize { get }
-
Sets the resolution of the layer. The width and height must both be between 160 and 1280, and the maximum total number of pixels is 921,600. So the smallest size you can provide is 160x160, and the largest is either 720x1280 or 1280x720. If the provided resolution does not meet this criteria, the resolution will not be set and the provided outError will be set.
Declaration
Objective-C
- (BOOL)setSize:(CGSize)size error:(NSError *_Nullable *_Nullable)outError;
Swift
func setSize(_ size: CGSize) throws
Parameters
size
The resolution of the layer
outError
On input, a pointer to an error object. If an error occurs, the pointer is an NSError object that describes the error. If you don’t want error information, pass in nil.
Return Value
if the set operation is successful or not.
-
The target framerate of the layer.
Declaration
Objective-C
@property (nonatomic, readonly) float targetFramerate;
Swift
var targetFramerate: Float { get }
-
Sets the target framerate of the layer. This must be between 10 and 30 If the provided framerate falls outside this range, the framerate will not be set and the provided outError will be set.
Declaration
Objective-C
- (BOOL)setTargetFramerate:(float)targetFramerate error:(NSError *_Nullable *_Nullable)outError;
Swift
func setTargetFramerate(_ targetFramerate: Float) throws
Parameters
targetFramerate
The target framerate for the layer
outError
On input, a pointer to an error object. If an error occurs, the pointer is an NSError object that describes the error. If you don’t want error information, pass in nil.
Return Value
if the set operation is successful or not.