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): The Device object of the camera you want to connect to.
  • streamType (optional): Whether to request the MAINSTREAM or SUBSTREAM resolution. Defaults to StreamType.MAINSTREAM.
  • playbackLens (optional): The sensor id to play back on cameras with multiple lenses. Defaults to null.
  • autoDisconnectAfter (optional): Milliseconds of inactivity after which the stream auto-disconnects. Defaults to 0L (disabled).

You can create an object likewise:

val client = SDCardPlaybackClient(
  device = device,
  startTime = 123123123L,
  endTime = 123123123L,
)

This site uses Just the Docs, a documentation theme for Jekyll.