SessionAdapter

SessionAdapter

Method

Description

Params

init(with username: String)

Specify the username

  • username - a display name

changeVideoCodec(codec: VideoCodecAdapter)

Specify a video codec type

  • codec - a video codec type

changeVideoRenderer(renderer: VideoRendererAdapter)

Specify a video renderer type

  • renderer - a video renderer type

build()

Construct a session instance

Field Summary

Type

Field

Description

LocalParticipantAdapter

localParticipant

Represents a local user

SessionAdapterDelegate?

delegate

An optional delegate registered for receiving callbacks

DispatchQueue

callbackQueue

A dispatch queue registered for receiving callbacks. The default queue is the main queue

SessionStateAdapter

sessionState

Enum with current session state

Method Summary

Return type

Methods

Description

Parameters

void

connect(with token: String)

Connect a session

  • token - Authentication token

void

disconnect()

Leave a room and teardown WebRTC session

UIViewController

createLogsViewController()

Return view controller with all Session logs

void

sendMessage(message: String)

sends message to all conference participants

message - text to send

void

forceDisconnect(participantId: String, message: String?)

kick partitipant by id from session

  • participantId -selected participant id

  • message - optional supplemental message(kick reason)

Static Method Summary

Return type

Methods

Description

Parameters

void

setMinLogLevel(_ logLevel: WTALogLevel)

Specify a log level

  • logLevel - a level for logs produced

Last updated