From: John Törnblom Date: Thu, 6 Jan 2011 17:43:25 +0000 (+0100) Subject: Expose a link to the url passed to tvheadend.VLC if the browser doesn't have a VLC... X-Git-Tag: 2.99~100 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3c06b89ad37dcd60f387f79079398f0fa10fb96a;p=thirdparty%2Ftvheadend.git Expose a link to the url passed to tvheadend.VLC if the browser doesn't have a VLC-compatrible browser --- diff --git a/src/webui/static/app/tvheadend.js b/src/webui/static/app/tvheadend.js index bc5af0858..d8bf786c4 100644 --- a/src/webui/static/app/tvheadend.js +++ b/src/webui/static/app/tvheadend.js @@ -182,6 +182,15 @@ tvheadend.VLC = function(url) { win.getTopToolbar().add(new Ext.Toolbar.Spacer()); win.getTopToolbar().add(new Ext.Toolbar.Spacer()); win.getTopToolbar().add(sliderLabel); + + if(url && (!vlc.playlist || vlc.playlist == 'undefined')) { + missingPlugin.style.display = 'none'; + + var chUrl = 'the stream'; + missingPlugin.innerHTML = '

You are missing a plugin for your browser.

'; + missingPlugin.innerHTML += '

You can still watch ' + chUrl + ' using an external player.

'; + missingPlugin.style.display = 'block'; + } }); win.show();