From d16bedea3f9aaf6769c2936bd9786b2d7604cd95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20T=C3=B6rnblom?= Date: Tue, 18 Sep 2012 17:50:24 +0200 Subject: [PATCH] encapsulate the vlc plugin with a panel. fixes vlc plugin after extjs3 upgrade --- src/webui/static/app/tvheadend.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/webui/static/app/tvheadend.js b/src/webui/static/app/tvheadend.js index cd94f3a5..eb12a2f3 100644 --- a/src/webui/static/app/tvheadend.js +++ b/src/webui/static/app/tvheadend.js @@ -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() {