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
spaceId(required): The spaceId of the space to which the camera belongs.deviceId(required): The deviceId of the camera you want to connect to.startTime(required): The start time from when to start the playback.endTime(required): The end time from when to stop the playback.videoResolution(optional): The resolution of the video stream you want to receive. Defaults to camera default.
You can create an object likewise:
val client = SDCardPlaybackClient(
spaceId = "spaceId",
deviceId = "deviceId",
startTime = 123123123L,
endTime = 123123123L,
videoResolution = VideoResolution.HD720
)