WSCCallConfig Class Reference

Inherits from NSObject
Declared in WSCCallConfig.h

Overview

Call configuration interface. Call Configuration describes the audio/video send and receive capabilities of a call.

  audioConfig

The audio direction configuration.

@property (readonly) WSCMediaDirection audioConfig

Discussion

The audio direction configuration.

Declared In

WSCCallConfig.h

  videoConfig

The video direction configuration.

@property (readonly) WSCMediaDirection videoConfig

Discussion

The video direction configuration.

Declared In

WSCCallConfig.h

  dataChannelConfigs

The data channel configurations.

@property (readonly) NSArray *dataChannelConfigs

Discussion

The data channel configurations.

Declared In

WSCCallConfig.h

  maxAudioBitrate

@property (readonly) long maxAudioBitrate

– init

Constructs a WSCCallConfig with audio and video configurations set to WSCMediaDirectionNone.

- (instancetype)init

Discussion

Constructs a WSCCallConfig with audio and video configurations set to WSCMediaDirectionNone.

Declared In

WSCCallConfig.h

– initWithAudioDirection:withVideoDirection:withDataChannel:withMaxAudioBitrate:

Returns an initialized WSCCallConfig object with audio/video directions.

- (instancetype)initWithAudioDirection:(WSCMediaDirection)audioMediaDirection withVideoDirection:(WSCMediaDirection)videoMediaDirection withDataChannel:(NSArray *)dataChannelConfigs withMaxAudioBitrate:(long)maxAudioBitrate

Parameters

audioMediaDirection

The direction of the local audio media stream

videoMediaDirection

The direction of the local video media stream

dataChannelConfigs

The configurations of data channel

Discussion

Returns an initialized WSCCallConfig object with audio/video directions.

Declared In

WSCCallConfig.h

– shouldSendAudio

Checks if audio send capability is supported.

- (BOOL)shouldSendAudio

Return Value

YES if audio capability is supported and NO otherwise

Discussion

Checks if audio send capability is supported.

Declared In

WSCCallConfig.h

– shouldSendVideo

Checks if video send capability is supported.

- (BOOL)shouldSendVideo

Return Value

YES if video capability is supported and NO otherwise

Discussion

Checks if video send capability is supported.

Declared In

WSCCallConfig.h

– shouldReceiveAudio

Checks if audio receive capability is supported.

- (BOOL)shouldReceiveAudio

Return Value

YES if audio capability is supported and NO otherwise

Discussion

Checks if audio receive capability is supported.

Declared In

WSCCallConfig.h

– shouldReceiveVideo

Checks if video receive capability is supported.

- (BOOL)shouldReceiveVideo

Return Value

YES if video capability is supported and NO otherwise

Discussion

Checks if video receive capability is supported.

Declared In

WSCCallConfig.h

– description

Returns a string that represents the call config.

- (NSString *)description

Discussion

Returns a string that represents the call config.

Declared In

WSCCallConfig.h

– hasMaxAudioBitrate

Checks if the audio bitrate should be set.

- (BOOL)hasMaxAudioBitrate

Discussion

Checks if the audio bitrate should be set.

Declared In

WSCCallConfig.h