Re: Problems parsing udp:// URLs
Rémi Denis-Courmont <[email protected]> Fri, 21 Mar 2025 20:36:54 +0200
| Newsgroups | gmane.comp.video.videolan.vlc.devel |
|---|---|
| Organization | Remlab |
| Message-ID | <[email protected]> |
Hi, Le perjantaina 21. maaliskuuta 2025, 20.06.22 UTC+2 Valentin Gosu a écrit : > The problem is that standards compliant browsers will turn udp://@ > 10.0.0.2:1234 to udp://10.0.0.2:1234 - because everything that's before > the @ character is username:password - and since it's empty it can be > ignored. I understood that the first time, But besides that statement of truth, I don't understand what you expect VLC to do about it? VLC has interpreted `udp://10.0.0.2:1234` as a command to listen to unicast UDP traffic to the default port and any local IP, from remote IP 10.0.0.2 and port 1324. We can't change that, lest we break existing playlists and command line scripts. > See > https://jsdom.github.io/whatwg-url/#url=dWRwOi8vQDEwLjAuMC4yOjEyMzQ=&base=YW > JvdXQ6Ymxhbms= > > As mentioned in bug 1949195 > <https://bugzilla.mozilla.org/show_bug.cgi?id=1949195> and on > forum.videolan.org <https://forum.videolan.org/viewtopic.php?t=165823> this > makes clicking on udp URL in browsers not open the correct stream in VLC. > For now we have made an exception in Firefox for the udp scheme, but I > expect we want to remove the exception soon, again breaking the > functionality of these URLs. > udp://10.0.0.2:1234@ doesn't parse as a valid URL, so I'm wondering if VLC > could treat udp://10.0.0.2:1234 as being udp://@10.0.0.2:1234 ? No, we obviously cannot redefine the VLC MRL syntax in backwards-incompatible fashion 25 years after the fact. -- Rémi Denis-Courmont Tapiolan uusi kaupunki, Uudenmaan entinen Suomen tasavalta _______________________________________________ vlc-devel mailing list To unsubscribe or modify your subscription options: https://mailman.videolan.org/listinfo/vlc-devel