vMix Forums
»
General
»
Beta Discussion
»
Telestrator check if on HTTPS
Rank: Newbie
Groups: Registered
Joined: 10/26/2020(UTC) Posts: 1
|
Hi, I love the new telestrator feature introduced in the new vMix 28 beta. However, I encountered a small issue when attempting to load the telestrator page via HTTPS using a proxy service, such as Cloudflare Tunnel or ngrok. When accessing the page over HTTPS, it returns the following error: "SecurityError: The operation is insecure." After some investigation, I believe this issue arises because the webpage is hard-coded to use ws:// for WebSocket connections, without accounting for whether the page was loaded via HTTPS. Here’s the relevant code snippet: Code:v = new WebSocketVideo("video1", "ws://" + hostnameAndPort + "/videosocket?auth=REDACTED");
I tested a workaround using Tampermonkey to replace ws:// with wss://, and it resolved the issue. You can see my Tampermonkey script here: https://gist.github.com/Unieveth/f4f0d63b365f209cd772919bdc1dc736
Would it be possible to update the telestrator code to check "window.location.protocol" and dynamically switch to wss:// when the page is loaded over HTTPS? This change would allow users to send a telestrator link to remote talent without requiring port forwarding if they have a tunnel running. Best, Unieveth
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 7/4/2021(UTC) Posts: 304 Thanks: 8 times Was thanked: 39 time(s) in 34 post(s)
|
Is this the case with just the Telestrator or the HTTP server in general?
I don't recall anything on the HTTP server ever working over HTTPS, nor does the Web Controller link provide an HTTPS link.
Is there a particular reason you're trying to access it over HTTPS?
|
|
|
|
vMix Forums
»
General
»
Beta Discussion
»
Telestrator check if on HTTPS
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The vMix Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close