logo

Live Production Software Forums


Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Unieveth  
#1 Posted : Friday, November 22, 2024 8:35:56 PM(UTC)
Unieveth

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
WaltG12  
#2 Posted : Saturday, November 23, 2024 4:06:15 AM(UTC)
WaltG12

Rank: Advanced Member

Groups: Registered
Joined: 7/4/2021(UTC)
Posts: 304
United States

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?
Users browsing this topic
Guest, Unieveth
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.