From: John Törnblom Date: Wed, 2 Feb 2011 18:53:33 +0000 (+0100) Subject: Fix the VLC plugin-detection. The HTML embed element have to be layed in order for... X-Git-Tag: 2.99~94 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4be5da592196f19142e80abbd1d385a5cefe2012;p=thirdparty%2Ftvheadend.git Fix the VLC plugin-detection. The HTML embed element have to be layed in order for the plugin to kick in. --- diff --git a/src/webui/static/app/tvheadend.js b/src/webui/static/app/tvheadend.js index 2cd955fa3..b0a786471 100644 --- a/src/webui/static/app/tvheadend.js +++ b/src/webui/static/app/tvheadend.js @@ -69,6 +69,8 @@ tvheadend.VLC = function(url) { chName = 'the stream'; } + vlc.style.display = 'block'; + if(!vlc.playlist || vlc.playlist == 'undefined') { var innerHTML = ''; innerHTML += '

You are missing a plugin for your browser.' @@ -78,12 +80,11 @@ tvheadend.VLC = function(url) { innerHTML += '

Direct URL

'; missingPlugin.innerHTML = innerHTML; + vlc.style.display = 'none'; missingPlugin.style.display = 'block'; return; } - vlc.style.display = 'block'; - if(vlc.playlist && vlc.playlist.isPlaying) { vlc.playlist.stop(); }