Re: Problems parsing udp:// URLs
Alexandre Janniaux <[email protected]> Thu, 20 Mar 2025 11:19:35 +0100
| Newsgroups | gmane.comp.video.videolan.vlc.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, I'm not sure whether it can be changed, given that it also means breaking existing playlist and use cases. But for the record, udp://@10.0.0.2:1234 is not the complete syntax. The complete syntax is udp://[[source address]@[bind address][:port]], which means we can't just simply remove it, and it's used in particular when playing multicast streams where you can have multiple senders on a single bind address. Regards, -- Alexandre Janniaux Videolabs On 19/03/2025 11:57, Valentin Gosu wrote: > 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 <http://10.0.0.2:1234> the URL > parser will remove the @ and turn it into udp://10.0.0.2:1234 > <http://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= > <https://jsdom.github.io/whatwg-url/#url=dWRwOi8vQDoxMjM0&base=YWJvdXQ6Ymxhbms=> > > _______________________________________________ > vlc-devel mailing list > To unsubscribe or modify your subscription options: > https://mailman.videolan.org/listinfo/vlc-devel _______________________________________________ vlc-devel mailing list To unsubscribe or modify your subscription options: https://mailman.videolan.org/listinfo/vlc-devel