createEventSession

suspend fun createEventSession(eventId: String, timeCodeProvider: SLRTimeCodeProvider?): SLREventSession

The StreamLayer SDK supports event by event configuration. After the StreamLayer SDK has been initialized, call this method at least once to fetch the current active configuration. Every time the current event occurs, this method should be called with a new event id to fetch the relevant configuration.

Return

The instance of SLREventSession.

Parameters

eventId

The id of current stream.

timeCodeProvider

The callback that will run when SDK need current stream epoch time.

Throws

RuntimeException

if can not create session for some reasons.