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')
...
I’m using fbvlc now, it fixed those bugs of the vlc webplugin.