Initialization
Last updated
Was this helpful?
Last updated
Was this helpful?
First, you need to select a room, authorize the app and give it access to your webcam.
App.js
store.js
For this example app, APP_ID
has been set to example.signaling.v1
.
store.js
SAFE Launcher displays a prompt with basic information about the app along with the requested permission (LOW_LEVEL_API
). You can authorize this request by clicking on "ALLOW".
After you authorize the request, the app receives an authorization token.
Room.js
VideoBlock.js
After you click on "Allow", the app starts showing a video stream of your webcam.
If you haven't selected a room yet, the app will prompt you to enter a room name. Alternatively, if you access a link that contains a (e.g. safe://mediawebrtc.ben#example
), the app will use it as the room name.
Once the app knows what room you want to connect to, it sends an to SAFE Launcher.
If you are the first user to join a room (the person initiating the call), the app and tries to store it inside a structured data with an ID based on the name of the room. This offer includes a session description in format, and it needs to be (the person receiving the call).
If you are joining a room where another user is waiting for you, the app needs to from the caller (the person initiating the call). The app expects this offer to be stored inside a structured data with an ID based on the name of the room. The call recipient then , which also contains an SDP description.
The app and stores it inside a structured data with an ID based on the random ID provided by the caller.
The app and tries to store it inside a structured data with an ID based on the name of the room.
The app also prompts you for permission to use one video and one audio input device using the method.