From 4be5da592196f19142e80abbd1d385a5cefe2012 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20T=C3=B6rnblom?= Date: Wed, 2 Feb 2011 19:53:33 +0100 Subject: [PATCH] Fix the VLC plugin-detection. The HTML embed element have to be layed in order for the plugin to kick in. --- src/webui/static/app/tvheadend.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/webui/static/app/tvheadend.js b/src/webui/static/app/tvheadend.js index 2cd955fa..b0a78647 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(); }