mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
rpicamsrc: webrtc example: Modify HTML to support other ports than 57778
This commit is contained in:
parent
d9115ef1eb
commit
b333e32e18
1 changed files with 6 additions and 3 deletions
|
@ -132,10 +132,13 @@ const gchar *html_source = " \n \
|
|||
\n \
|
||||
\n \
|
||||
function playStream(videoElement, hostname, port, path, configuration, reportErrorCB) { \n \
|
||||
var wsHost = (hostname != undefined) ? hostname : window.location.hostname; \n \
|
||||
var wsPort = (port != undefined) ? port : 57778; \n \
|
||||
var l = window.location;\n \
|
||||
var wsHost = (hostname != undefined) ? hostname : l.hostname; \n \
|
||||
var wsPort = (port != undefined) ? port : l.port; \n \
|
||||
var wsPath = (path != undefined) ? path : \"ws\"; \n \
|
||||
var wsUrl = \"ws://\" + wsHost + \":\" + wsPort + \"/\" + wsPath; \n \
|
||||
if (wsPort) \n\
|
||||
wsPort = \":\" + wsPort; \n\
|
||||
var wsUrl = \"ws://\" + wsHost + wsPort + \"/\" + wsPath; \n \
|
||||
\n \
|
||||
html5VideoElement = videoElement; \n \
|
||||
webrtcConfiguration = configuration; \n \
|
||||
|
|
Loading…
Reference in a new issue