From 6601454a2052ed0e4a0336f5e95aa4f1c0a3f69c Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Fri, 3 Apr 2015 17:12:15 +0200 Subject: Enable Flash on the Relive-Player-Page --- assets/js/lustiges-script.js | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'assets/js/lustiges-script.js') diff --git a/assets/js/lustiges-script.js b/assets/js/lustiges-script.js index 33b84a6..5024e12 100644 --- a/assets/js/lustiges-script.js +++ b/assets/js/lustiges-script.js @@ -151,16 +151,24 @@ $(function() { } })(mejs.i18n.locale.strings); - $('video').mediaelementplayer({ - enableAutosize: true, - - pluginPath: 'assets/js/lib/', - features: ['playpause', 'volume', 'fullscreen', $('video').hasClass('subs') ? 'subs' : ''] + $('body.room video').mediaelementplayer({ + pluginPath: 'assets/mejs/', + features: ['playpause', 'volume', 'fullscreen'], + enableAutosize: true }); - $('audio').mediaelementplayer({ + $('body.room audio').mediaelementplayer({ features: ['playpause', 'volume', 'current'] }); + $('body.relive-player video').mediaelementplayer({ + mode: 'auto_plugin', + enablePluginDebug: true, + plugins: ['flash'], + flashName: 'flashmediaelement.swf', + pluginPath: 'assets/mejs/', + enableAutosize: true, + }); + $(window).on('load', function() { $(window).trigger('resize'); }); -- cgit v1.2.3