gpt4 book ai didi

xml - 如何在VLC的播放列表窗口中显示嵌套条目?

转载 作者:行者123 更新时间:2023-12-04 13:50:09 31 4
gpt4 key购买 nike

根据https://wiki.videolan.org/XSPF/,应该可以在播放列表窗口中显示嵌套条目。在下面的示例中,我希望有一棵像

Playlist
`- DLF
|- Deutschlandfunk
|- Deutschlandfunk Kultur
`- Deutschlandfunk Nova


但我明白了

Playlist
|- Deutschlandfunk
|- Deutschlandfunk Kultur
`- Deutschlandfunk Nova


示例文件:

<?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>Internetradios</title>
<trackList>
<track>
<title>Deutschlandfunk</title>
<location>http://st01.dlf.de/dlf/01/128/mp3/stream.mp3</location>
<album>DLF</album>
<extension application="http://www.videolan.org/vlc/playlist/0">
<vlc:id>0</vlc:id>
</extension>
</track>
<track>
<title>Deutschlandfunk Kultur</title>
<location>http://st02.dlf.de/dlf/02/128/mp3/stream.mp3</location>
<album>DLF</album>
<extension application="http://www.videolan.org/vlc/playlist/0">
<vlc:id>1</vlc:id>
</extension>
</track>
<track>
<title>Deutschlandfunk Nova</title>
<location>http://st03.dlf.de/dlf/03/128/mp3/stream.mp3</location>
<album>DLF</album>
<extension application="http://www.videolan.org/vlc/playlist/0">
<vlc:id>2</vlc:id>
</extension>
</track>
</trackList>
<extension application="http://www.videolan.org/vlc/playlist/0">
<vlc:node title="DLF">
<vlc:item tid="0"/>
<vlc:item tid="1"/>
<vlc:item tid="2"/>
</vlc:node>
</extension>
</playlist>


一些提示?

最佳答案

version标记中删除playlist属性;所以代替:

<playlist xmlns="http://xspf.org/ns/0/" xmlns:vlc="http://www.videolan.org/vlc/playlist/ns/0/" version="1">


仅使用:

<playlist xmlns="http://xspf.org/ns/0/" xmlns:vlc="http://www.videolan.org/vlc/playlist/ns/0/">


希望这可以帮助。

关于xml - 如何在VLC的播放列表窗口中显示嵌套条目?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56079681/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com