diff --git a/README.md b/README.md index 91248212e916699f00dfa9b701e263cda263c6f0..d9561026e42071a0011d5a5628793943e623d669 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ The following list explains the usage of the parameters: * `pin` *optional*: The pin for the janus room. If the janus room has no pin, provide the value `none`. If this parameter is not provided, an input field for the pin is shown. -* `customNameAllowed` *optional*: If this parameter is present (even when holding no value), an input field for a custom name is shown. The user can also update his name after starting a transmission. The names are escaped on the server to prevent Cross-Site-Scripting (XSS) attacks. +* `customNameAllowed` *optional*: If this parameter is present (even when holding no value), an input field for a custom name is shown. If a value is provided for this field, it will be used as initial value of the input field. The user can also update his name after starting a transmission. The names are escaped on the server to prevent Cross-Site-Scripting (XSS) attacks. # Camera Server diff --git a/sender/camera-sender.js b/sender/camera-sender.js index f74a9112be6861143af36ad191218a9e9575cba6..0a8e960a80e0097456c8a4dc6c497b802a1ed4df 100644 --- a/sender/camera-sender.js +++ b/sender/camera-sender.js @@ -380,6 +380,7 @@ document.addEventListener('DOMContentLoaded', function() { var param = urlParams.get('customNameAllowed'); customNameAllowed = param != null; if (customNameAllowed) { + document.getElementById('name-input').value = param; showElement(document.getElementById('name-control')); } }