getNewSession
@GetMapping(value="/{id}")
public LiveStreamService.NewSessionInformation getNewSession(@PathVariable(value="id")
java.util.UUID deviceId)
throws org.eclipse.paho.client.mqttv3.MqttException,
com.fasterxml.jackson.core.JsonProcessingException
Create a new session for communication with specific device. Example response:
{"sessionId":"7946828a-121e-478b-a550-2ab46d8920b4","iceServers":[{"urls":"stun:stun.l.google.com:19302"},{"urls":"turns:team21-18.studenti.fiit.stuba.sk:8349","username":"username","credential":"password"}]}
- Parameters:
deviceId
- device UUID to communicate with
- Returns:
- JSON encoded information about the newly created session - identifier and ICE servers
to pass to webrtc browser implementation
- Throws:
org.eclipse.paho.client.mqttv3.MqttException
- if error occurs during communication with the camera device
com.fasterxml.jackson.core.JsonProcessingException
- if error occurs serializing the message for the camera device