Setting Up Playback
To play back from the SD card the user will have to obtain a LiveViewModel from LiveViewObjectStore with the .cvrPlayback object type; it is cached per camera like the live view object. Streaming starts when you call connect — see Rendering Playback.
Initiating a SD Card Playback Connection
To create a playback LiveViewModel you will need
objectType(required):.cvrPlayback.spaceId(required): The spaceId of the space to which the camera belongs.deviceId(required): The deviceId of the camera you want to connect to.wakeup(required): This should be set to true for cameras that are battery operated.supportsCalling(optional): Not used for playback.supportRSSI(optional): Not used for playback.hardwareConfig(optional): Pass hardware config of camera for display resolution, sensor resolution and multi-stream sensors.sensorId(optional): On a multi-sensor camera, the sensor to play back. Defaults to"0"when the camera has multi-stream sensors.
You can create an object likewise:
let liveViewObject = LiveViewObjectStore.objectFor(
.cvrPlayback,
spaceId: "spaceId",
deviceId: "deviceId",
wakeup: device.isMcuSupported,
hardwareConfig: clusters.hardwareConfig,
sensorId: "0"
)