create Event Session
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
event Id
The id of current stream.
time Code Provider
The callback that will run when SDK need current stream epoch time.
Throws
Runtime Exception
if can not create session for some reasons.