Setting Up Playback
To see the SD Card the user will have to create a SDCardPlaybackClient object. Which will initialize the SD Card playback and start the streaming to a player that can be fetched from the newly created object.
Initiating a SD Card Playback Connection
To create a SDCardPlaybackClient you will need
startTime(required): The start time from when to start the playback.endTime(required): The end time from when to stop the playback.device(required): TheDeviceobject of the camera you want to connect to.streamType(optional): Whether to request theMAINSTREAMorSUBSTREAMresolution. Defaults toStreamType.MAINSTREAM.playbackLens(optional): The sensor id to play back on cameras with multiple lenses. Defaults tonull.autoDisconnectAfter(optional): Milliseconds of inactivity after which the stream auto-disconnects. Defaults to0L(disabled).
You can create an object likewise:
val client = SDCardPlaybackClient(
device = device,
startTime = 123123123L,
endTime = 123123123L,
)