Setting Up Playback

To see the SD Card the user will have to create a LiveViewModel 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 LiveViewModel 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.
  • wakeUp (required): This should be set to true for cameras that are battery operated.
  • supportsCalling (optional): This should be set to true if camera supports 2 way video call.
  • isPlayback (optional): This should be set to true
  • supportRSSI (optional): This should be set to true if camera supports wifi rssi feature.
  • displayResolution (optional): This should be set to true if camera has led and specific display resolution is needed.

You can create an object likewise:

let liveViewObject = LiveViewObjectStore.objectFor(spaceId: "spaceId",
    deviceId: "deviceId",
    wakeup: device.isMcuSupported,
    supportsCalling: device.supportsVideoCall,
    isPlayback: true,
    supportRSSI: device.rssiSupport,
    displayResolution: device.displayResolution)