BaseStageController

abstract class BaseStageController(self: DyteSelfParticipant, scope: CoroutineScope) : EventEmitter<DyteStageEventListener> , IStageController, InternalEvents

Constructors

Link copied to clipboard
constructor(self: DyteSelfParticipant, scope: CoroutineScope)

Properties

Link copied to clipboard

list of requests which are asking to join stage

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract suspend fun cancelRequestAccess()

to cancel request to access stage

Link copied to clipboard
open fun connectMedia()
Link copied to clipboard
Link copied to clipboard
abstract suspend fun denyAccess(id: String)

to reject a access request from a participant

Link copied to clipboard
abstract suspend fun denyAccessAll()

to reject all access requests

Link copied to clipboard
open fun disconnectMedia()
Link copied to clipboard
fun dispose()
Link copied to clipboard
open fun emitEvent(event: (listener: DyteStageEventListener) -> Unit)
Link copied to clipboard
abstract suspend fun grantAccess(id: String)

to accept a access request from a participant

Link copied to clipboard
abstract suspend fun grantAccessAll()

to accept all access requests

Link copied to clipboard
fun init()
Link copied to clipboard
abstract suspend fun join()

to join stage. for participants with audio and video permission set to need_to_request first should get there request approved and then call join.

Link copied to clipboard
abstract suspend fun kick(id: String)

to kick a give peerId from stage

Link copied to clipboard
abstract suspend fun leave()

to leave stage.

Link copied to clipboard
open fun onRoomJoined(webSocketJoinRoomModel: WebSocketJoinRoomModel)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract suspend fun requestAccess()

for participants who have audio == need_to_request OR video == need_to_request, first should ask host permission to join stage.

Link copied to clipboard
abstract fun setupEvents()