]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Expose a link to the url passed to tvheadend.VLC if the browser doesn't have a VLC...
authorJohn Törnblom <john.tornblom@gmail.com>
Thu, 6 Jan 2011 17:43:25 +0000 (18:43 +0100)
committerJohn Törnblom <john.tornblom@gmail.com>
Fri, 4 Feb 2011 14:59:59 +0000 (15:59 +0100)
src/webui/static/app/tvheadend.js

index bc5af0858f7ac28517a13dfaf6bf160be1167209..d8bf786c4202066858b8b60f111e48bbb54865e4 100644 (file)
@@ -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 = '<a href="' + url + '">the stream</a>';
+      missingPlugin.innerHTML  = '<p>You are missing a plugin for your browser.</p>';
+      missingPlugin.innerHTML += '<p>You can still watch ' + chUrl + ' using an external player.</p>';
+      missingPlugin.style.display = 'block';
+    }
   });
 
   win.show();