[vlc-devel] Problems parsing udp:// URLs

Valentin Gosu valentin.gosu at gmail.com
Wed Mar 19 10:57:31 UTC 2025


Hi VLC developers,

I work on the Firefox networking stack.
Recently Firefox (and Chrome) switched our URL parsers for non-special
schemes to be more in line with the URL Standard [1]. However this caused
issues for VLC users, when clicking udp:// links that are supposed to be
opened in VLC [2]. For now we've added an exception for udp URLs, but some
webdevelopers are using the udp scheme for other purposes [3]

We would like to remove the exception for udp URLs, and let them be parsed
according to the URL standard.
Is it possible to change the way VLC parses udp URLs [4] so that it still
works if the @ character isn't present?

For example, for udp://@10.0.0.2:1234 the URL parser will remove the @ and
turn it into udp://10.0.0.2:1234
Another case that needs to be addressed is udp://@:1234 as it currently
fails to parse with the URL standard [5].

Thanks!

[1] https://url.spec.whatwg.org/
[2] 1949195 - Firefox removes at sign (@) from UDP links for VLC video
player - https://bugzilla.mozilla.org/show_bug.cgi?id=1949195
[3] [1954766 - URL does not parse hostname for udp urls](
https://bugzilla.mozilla.org/show_bug.cgi?id=1954766)
[4]
https://docs.videolan.me/vlc-user/desktop/3.0/en/advanced/streaming/udp_url.html
[5]
https://jsdom.github.io/whatwg-url/#url=dWRwOi8vQDoxMjM0&base=YWJvdXQ6Ymxhbms=
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20250319/a540b4f3/attachment.htm>


More information about the vlc-devel mailing list