encapsulate the vlc plugin with a panel. fixes vlc plugin after extjs3 upgrade

This commit is contained in:
John Törnblom 2012-09-18 17:50:24 +02:00
parent a6cb52a580
commit d16bedea3f

View file

@ -44,6 +44,13 @@ tvheadend.VLC = function(url) {
}
var vlc = document.createElement('embed');
var vlcPanel = new Ext.Panel({
border : false,
layout : 'fit',
bodyStyle: 'background: transparent;',
contentEl: vlc
});
vlc.setAttribute('type', 'application/x-vlc-plugin');
vlc.setAttribute('pluginspage', 'http://www.videolan.org');
vlc.setAttribute('version', 'VideoLAN.VLCPlugin.2');
@ -167,7 +174,7 @@ tvheadend.VLC = function(url) {
tooltip : 'Volume',
disabled : true
}, ],
items : [ vlc /*, missingPlugin */]
items : [ vlcPanel /*, missingPlugin */]
});
win.on('beforeShow', function() {