<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi,</p>
<p>I'm not sure whether it can be changed, given that it also means
breaking existing playlist<br>
and use cases. But for the record, <a class="moz-txt-link-freetext" href="udp://@10.0.0.2:1234">udp://@10.0.0.2:1234</a> is not the
complete syntax.</p>
<p>The complete syntax is <a class="moz-txt-link-freetext" href="udp://[">udp://[</a>[source address]@[bind
address][:port]], which means we<br>
can't just simply remove it, and it's used in particular when
playing multicast streams where<br>
you can have multiple senders on a single bind address.</p>
<p>Regards,</p>
<p>--<br>
Alexandre Janniaux<br>
Videolabs<br>
</p>
<div class="moz-cite-prefix">On 19/03/2025 11:57, Valentin Gosu
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CACQYfiL3SgpV+pKCK-dusroN=iGQMH625W_7wrx7HMV-BU91ng@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div>Hi VLC developers,</div>
<div><br>
</div>
<div>I work on the Firefox networking stack.<br>
</div>
<div>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
<a class="moz-txt-link-freetext" href="udp://">udp://</a> 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]</div>
<div><br>
</div>
<div>We would like to remove the exception for udp URLs, and let
them be parsed according to the URL standard.<br>
</div>
<div>Is it possible to change the way VLC parses udp URLs [4] so
that it still works if the @ character isn't present?</div>
<div><br>
</div>
<div>For example, for <a class="moz-txt-link-freetext" href="udp://@">udp://@</a><a href="http://10.0.0.2:1234"
moz-do-not-send="true">10.0.0.2:1234</a> the URL parser will
remove the @ and turn it into <a class="moz-txt-link-freetext" href="udp://">udp://</a><a
href="http://10.0.0.2:1234" moz-do-not-send="true">10.0.0.2:1234</a><br>
</div>
<div>Another case that needs to be addressed is <a class="moz-txt-link-freetext" href="udp://@:1234">udp://@:1234</a> as
it currently fails to parse with the URL standard [5].</div>
<div><br>
</div>
<div>Thanks!</div>
<div><br>
</div>
<div>[1] <a href="https://url.spec.whatwg.org/"
moz-do-not-send="true" class="moz-txt-link-freetext">https://url.spec.whatwg.org/</a></div>
<div>[2] 1949195 - Firefox removes at sign (@) from UDP links
for VLC video player - <a
href="https://bugzilla.mozilla.org/show_bug.cgi?id=1949195"
moz-do-not-send="true" class="moz-txt-link-freetext">https://bugzilla.mozilla.org/show_bug.cgi?id=1949195</a></div>
<div>[3] [1954766 - URL does not parse hostname for udp urls](<a
href="https://bugzilla.mozilla.org/show_bug.cgi?id=1954766"
moz-do-not-send="true" class="moz-txt-link-freetext">https://bugzilla.mozilla.org/show_bug.cgi?id=1954766</a>)</div>
<div>[4] <a
href="https://docs.videolan.me/vlc-user/desktop/3.0/en/advanced/streaming/udp_url.html"
moz-do-not-send="true" class="moz-txt-link-freetext">https://docs.videolan.me/vlc-user/desktop/3.0/en/advanced/streaming/udp_url.html</a></div>
<div>[5] <a
href="https://jsdom.github.io/whatwg-url/#url=dWRwOi8vQDoxMjM0&base=YWJvdXQ6Ymxhbms="
moz-do-not-send="true">https://jsdom.github.io/whatwg-url/#url=dWRwOi8vQDoxMjM0&base=YWJvdXQ6Ymxhbms=</a></div>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre wrap="" class="moz-quote-pre">_______________________________________________
vlc-devel mailing list
To unsubscribe or modify your subscription options:
<a class="moz-txt-link-freetext" href="https://mailman.videolan.org/listinfo/vlc-devel">https://mailman.videolan.org/listinfo/vlc-devel</a>
</pre>
</blockquote>
</body>
</html>