diff --git a/subprojects/gst-examples/webrtc/sendrecv/js/index.html b/subprojects/gst-examples/webrtc/sendrecv/js/index.html index b6915bf362..752e1f4883 100644 --- a/subprojects/gst-examples/webrtc/sendrecv/js/index.html +++ b/subprojects/gst-examples/webrtc/sendrecv/js/index.html @@ -29,10 +29,10 @@
- + + Same as the --remote-offerer flag in the sendrecv C example --> Remote offerer
diff --git a/subprojects/gst-examples/webrtc/sendrecv/js/webrtc.js b/subprojects/gst-examples/webrtc/sendrecv/js/webrtc.js index d403a1bb27..46a7c5ea9c 100644 --- a/subprojects/gst-examples/webrtc/sendrecv/js/webrtc.js +++ b/subprojects/gst-examples/webrtc/sendrecv/js/webrtc.js @@ -49,6 +49,15 @@ function onConnectClicked() { setConnectButtonState("Disconnect"); } +function onTextKeyPress(e) { + e = e ? e : window.event; + if (e.code == "Enter") { + onConnectClicked(); + return false; + } + return true; +} + function getOurId() { return Math.floor(Math.random() * (9000 - 10) + 10).toString(); }