SKYLINKConnectionConfig Class Reference
Inherits from | NSObject |
---|---|
Declared in | SKYLINKConnection.h |
audio
enable/disable audio.
@property (nonatomic, unsafe_unretained) BOOL audio
Discussion
Default value is NO. This is a convinience property to set both sendAudio and receiveAudio to the same value.
Declared In
SKYLINKConnection.h
video
enable/disable video.
@property (nonatomic, unsafe_unretained) BOOL video
Discussion
Default value is NO. This is a convinience property to set both sendVideo and receiveVideo to the same value.
Declared In
SKYLINKConnection.h
sendAudio
enable/disable sending audio.
@property (nonatomic, unsafe_unretained) BOOL sendAudio
Discussion
Default value is NO.
Declared In
SKYLINKConnection.h
receiveAudio
enable/disable sending audio.
@property (nonatomic, unsafe_unretained) BOOL receiveAudio
Discussion
Default value is NO.
Declared In
SKYLINKConnection.h
sendVideo
enable/disable sending video.
@property (nonatomic, unsafe_unretained) BOOL sendVideo
Discussion
Default value is NO.
Declared In
SKYLINKConnection.h
receiveVideo
enable/disable receiving video.
@property (nonatomic, unsafe_unretained) BOOL receiveVideo
Discussion
Default value is NO.
Declared In
SKYLINKConnection.h
dataChannel
enable/disable dataChannel.
@property (nonatomic, unsafe_unretained) BOOL dataChannel
Discussion
Default value is NO.
Declared In
SKYLINKConnection.h
fileTransfer
enable/disable file transfer.
@property (nonatomic, unsafe_unretained) BOOL fileTransfer
Discussion
Default value is NO.
Declared In
SKYLINKConnection.h
timeout
number of seconds for file transfer timeout.
@property (nonatomic, unsafe_unretained) NSInteger timeout
Discussion
Default value is 60.
Declared In
SKYLINKConnection.h
)
Optional configuration for advanced users. (Deprecated: Use -(BOOL)advancedSetting:(NSString *)settingKey setValue:(id)value instead.)
@property (nonatomic, weak) NSDictionary *DEPRECATED_MSG_ATTRIBUTE ( "Use -(BOOL)advancedSetting:(NSString *)settingKey setValue:(id)value instead." )
Parameters
userInfo |
NSDictionary carrying the desired settings. Read the discussion for details. |
---|
Discussion
The userInfo dictionnary key and associated settings are: @“STUN” key (NSNumber value): set @“STUN” to @YES to DISABLE STUN server. @“TURN” key (NSNumber value): set @“TURN” to @YES to DISABLE TURN server. @“transport” key (NSString value): expected values are @“TCP” or @“UDP”. @“audio” key (NSString value): preferred audio codec, expected values are @“Opus” or @“iLBC”.
Declared In
SKYLINKConnection.h
– advancedSettingKey:setValue:
Optional configuration for advanced users.
- (BOOL)advancedSettingKey:(NSString *)settingKey setValue:(id)settingValue
Return Value
YES if the setting was sucessfully set (valid setting key and associated value).
Discussion
The settingKey and associated settings values are: @“STUN” key, (NSNumber value): set @“disableSTUN” to @YES to disable STUN server. @“TURN” key, (NSNumber value): set @“disableTURN” to @YES to disable TURN server. @“transport” key, (NSString value): expected values are @“TCP” or @“UDP”. @“audio” key, (NSString value): preferred audio codec, expected values are @“Opus” or @“iLBC”. @“startWithBackCamera” key, (NSNumber value): if you send the camera, this will determine the local camera to start the video capture. Default is @NO (ie: use front camera) @“preferedCaptureSessionPresets” key, (NSArray value): ordered array of AVCaptureSessionPreset for the video capture, the first if any that can be used for the device will be picked.
Declared In
SKYLINKConnection.h