[ ] I've checked out the code and tested it myself.
Changes
Created a PUT route that will toggle the value of the global variable called useTurnServer (which is stored onserver-standalone). Note: The use of an authentication key attached to the header is necessary for this request to work.
Created a GET route to access either the credentials of TURN & STUN or STUN server only depending on a global variable stored on server-standalone.
Created a UI component that has an input field (where the user will provide the authentication key) and check/uncheck the input checkbox for the PUT request described previously.
Notes:
1) I don't have access to set up the environment variables for this to work. We have to do that before merging!
2) In the UI component, the PUT request is done currently with a local IP, we have to change that!
3) I'm open to changes to the UI. It's under flottform/demo/routes/turn-server-control
4) We can also change the name of the routes used for GET/PUT. For now they're called respectively turn-credentials and turn-control
Checklist
Reviewer
Changes
useTurnServer
(which is stored onserver-standalone
). Note: The use of an authentication key attached to the header is necessary for this request to work.server-standalone
.Notes: 1) I don't have access to set up the environment variables for this to work. We have to do that before merging!
2) In the UI component, the PUT request is done currently with a local IP, we have to change that!
3) I'm open to changes to the UI. It's under
flottform/demo/routes/turn-server-control
4) We can also change the name of the routes used for GET/PUT. For now they're called respectively
turn-credentials
andturn-control