Setting Up Live Streaming
To see the live view the user will have to create a LiveStreamClient object. Which will initialize the live view and start the streaming to a player that can be fetched from the newly created object.
Initiating a Live Stream Connection
To create a LiveStreamClient 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.needsWakeUp(optional): This should be set to true for cameras that are battery operated.videoResolution(optional): The resolution of the video stream you want to receive. Defaults to camera default.
You can create an object likewise:
val client = LiveStreamClient(
spaceId = "spaceId",
deviceId = "deviceId",
needsWakeUp = true,
videoResolution = VideoResolution.HD720
)