Event Handling
Request Events in the time duration for playback
Note: The playback should have already started before making any interactions
To request event for playback, The following can be used:
client.requestMediaInfo(
start = 123123123L,
end = 123123123L
)
Observing Events in the selected duration
Note: The playback should have already started before making any interactions Use client.supportsTimeLine to check if the firmware supports timeline To observe the current event timeline, The following can be used:
viewModelScope.launch {
client.timeLine.collectLatest { events ->
// This will give you a list of events that are present between the selected time slot.
}
}