Expose a link to the url passed to tvheadend.VLC if the browser doesn't have a VLC-compatrible browser
This commit is contained in:
parent
d107748b91
commit
3c06b89ad3
1 changed files with 9 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue