]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
encapsulate the vlc plugin with a panel. fixes vlc plugin after extjs3 upgrade
authorJohn Törnblom <john.tornblom@gmail.com>
Tue, 18 Sep 2012 15:50:24 +0000 (17:50 +0200)
committerJohn Törnblom <john.tornblom@gmail.com>
Tue, 18 Sep 2012 15:51:13 +0000 (17:51 +0200)
src/webui/static/app/tvheadend.js

index cd94f3a51f50f7374427f79fc4217a3502cc880a..eb12a2f37062710c5b3cc9ebc54033e64b57fb93 100644 (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() {