[vlc-devel] [PATCH] Improve the playlist experience
Mario Speiß
1034-135 at online.de
Mon Feb 11 21:46:04 CET 2013
On 11.02.2013 09:35, Rémi Denis-Courmont wrote:
> On Sun, 10 Feb 2013 22:31:58 +0100, Mario Speiß<1034-135 at online.de>
> wrote:
>> If playlists containing youtube urls are exported or imported, these
>> patches
>> improve the usability of the playlist.
>
> I don't think<info> is acceptable either. I don't think you can do what
> you want with XSPFv1.
>
Quoting the XSPFv1 (http://xspf.org/xspf-v1.html):
4.1.1.2.14.1.1.1.6 info
URI of a place where this resource can be bought or more info can be
found. xspf:track elements MAY contain exactly one.
I thinks that is possible.
Second, quoting again: "It is portable -- You should be able to send a
playlist to your friend and have it work."
Exactly _that_ is really difficult with the current implementation.
Take following playlist:
<?xml version="1.0" encoding="UTF-8"?>
<playlist version="1" xmlns="http://xspf.org/ns/0/">
<trackList>
<track>
<location>http://www.youtube.com/watch?v=sometrack</location>
</track>
</trackList>
</playlist>
It opens with VLC and playback is fine. Then save the playlist in
xspf-format again (important: _after_ playback!). You will get something
like
<?xml version="1.0" encoding="UTF-8"?>
<playlist xmlns="http://xspf.org/ns/0/"
xmlns:vlc="http://www.videolan.org/vlc/playlist/ns/0/" version="1">
<title>Wiedergabeliste</title>
<trackList>
<track>
<location>http://r8---sn-5hn7zne7.c.youtube.com/videoplayback?cp=U0hVRVZOVl9GS0NONV9OSFpEOnNwNUdDSExDZVdo&upn=3WIhPOJUWG8&source=youtube&mv=m&itag=45&ipbits=8&ms=au&fexp=923501%2C924320%2C914028%2C901458%2C920704%2C912806%2C902000%2C922403%2C922405%2C929901%2C913605%2C925710%2C929114%2C925006%2C906938%2C908529%2C920201%2C930101%2C911116%2C926403%2C910221%2C901451%2C919114&key=yt1&expire=1360638311&ip=91.42.100.83&sparams=cp%2Cid%2Cip%2Cipbits%2Citag%2Cratebypass%2Csource%2Cupn%2Cexpire&id=9369a5174ea240f8&sver=3&newshard=yes&ratebypass=yes&mt=1360612873&signature=55BD2CD9FEFD3F58F96CBEBAA044E0CE023C11D5.96E237733E59855E16F6E421B619277859C91D69</location>
<annotation>Installation: http://www.mediafire.com/?vnuk8r8c7b2w88p
Und der life key von justin.tv http://de.justin.tv/broadcast/adv_other
(erst ma bei justin.tv einlogg...</annotation>
<image>http://i4.ytimg.com/vi/k2mlF06iQPg/mqdefault.jpg</image>
<duration>312346</duration>
<extension application="http://www.videolan.org/vlc/playlist/0">
<vlc:id>0</vlc:id>
</extension>
</track>
</trackList>
<extension application="http://www.videolan.org/vlc/playlist/0">
<vlc:item tid="0"/>
</extension>
</playlist>
Now my question: Where is the information about the title? about the
website? other formats for playback? That implementation does not seem
very portable to me.
However, with the patch of lua (see vlc.c) firstofall the original path
is copied to meta-url (if and _only_ if the lua parsers did not parse
anything else for meta-url).
The xspf-parts use that information and save/load that meta-url within
the <info> of the track item. What's so wrong about that? Please explain
to me.
My first approach to save to <link> was not a good idea, that was not
validated. But if you validate this little playlist with some validation
tools, it says VALID.
Regards,
Mario
More information about the vlc-devel
mailing list