Playback Controls
Observing Current Playback Time
Note: The playback object should already be connected before making any interactions
The camera reports the position as a PlaybackMessage with action == .tsTimeStamp on onDataChannelMessage; read its timeStamp (epoch seconds). Nothing on the model is updated for you — playbackCurrentTime only reflects the last seek target.
Seeking to a specific time
Note: The playback object should already be connected before making any interactions
To seek to a specific time, The following can be used. time is an epoch in seconds. For camera playback versions below 4 the SDK seeks one second earlier (unless time is local midnight). Playback then runs until the playbackEndTime given to connect, or the end of that local day. Seeking also clears sdCardPlaybackEnd.
liveViewObject.seekToTime(time: TimeInterval)
Resume playback
Note: The playback object should already be connected before making any interactions
To resume playback, The following can be used:
liveViewObject.play()
Pause playback
Note: The playback object should already be connected before making any interactions
To Pause playback, The following can be used:
liveViewObject.pause()
Switching the sensor being played back
Note: The playback object should already be connected before making any interactions
On a multi sensor camera, to switch the lens being played back, The following can be used:
id(required): The sensor id to switch to.
liveViewObject.switchPlaybackSensor(id: String)