简体   繁体   中英

Why VLC web plugin automatically clear its playlist?

I followed this guide , but it doesn't show how to dynamically change the plugin's source property, so I use the Playlist object.

I add some urls, then switch between them by vlc.playlist.playItem . It works fine when the wrapper is displayed.

When I call $('#wrapper').hide() then $('#wrapper').show() , I found the playlist is emptyed by some mysterious power.

So how should I properly keep the playlist and what is the right way to switch between videos?

<div id='wrapper'>
    <embed type='application/x-vlc-plugin' id='vlc' toolbar='false' width='800' height='600' autoplay='false' />
</div>

var vlc = document.getElementById('vlc');
vlc.playlist.add('rtsp://asdfsdaf')
vlc.playlist.add('rtsp://1sfafdfa')
...

我现在正在使用fbvlc ,它修复了vlc webplugin的那些错误。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM