Page 1 of 1
Is there a tool in libvlc to process URL redirects ?
Posted: 18 May 2020 20:07
by pcouderc
Some streams use HTML redirects such as http://www.radioswissclassic.ch/fr/live/aacp.m3u which redirects to http://stream.srg-ssr.ch/m/rsc_fr/aacp_96 .
This works fine in vlc, but I have not found the equivalent in libvlc.
Maybe an event, but I have not found it...
Thanks
PC
Re: Is there a tool in libvlc to process URL redirects ?
Posted: 18 May 2020 20:58
by mfkl
You need to parse the root item (m3u) and then play one of its sub items, same for youtube. C# example: https://code.videolan.org/videolan/LibVLCSharp/-/blob/3.x/docs/how_do_I_do_X.md#how-do-i-play-a-youtube-video
Re: Is there a tool in libvlc to process URL redirects ?
Posted: 18 May 2020 21:24
by RĂ©mi Denis-Courmont
Redirections are handled automatically. Playlists not.
Re: Is there a tool in libvlc to process URL redirects ?
Posted: 21 May 2020 19:28
by pcouderc
I have found no example on the net to do that. Should I use libvlc_media_parse_with_options ?
I suppose it has been done many times....