From da15fd33e4b6d4bb4089c42591de3574d383f874 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Sat, 27 Dec 2014 20:56:20 +0100 Subject: relive gui --- assets/js/lustiges-relive-script.js | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) (limited to 'assets/js/lustiges-relive-script.js') diff --git a/assets/js/lustiges-relive-script.js b/assets/js/lustiges-relive-script.js index fe2ead7..19fa7a1 100644 --- a/assets/js/lustiges-relive-script.js +++ b/assets/js/lustiges-relive-script.js @@ -1,14 +1,17 @@ +// mediaelement-player $(function() { - var - $parent = $('.event-previews'), - $loading = $parent, - $tpl = $parent.find('.template').detach().removeClass('template'); - - $.ajax({ - url: '/~peter/relive.json', - success: function(els) { - console.log(els); - $loading.hide(); + (function(strings) { + strings['en-US'] = { + 'Download File': 'Open HLS-Stream in Desktop-Player' } + })(mejs.i18n.locale.strings); + + $('video').mediaelementplayer({ + mode: 'auto_plugin', + + // hack z-index so that the flash plugin get's the click on the fullscreen button + enableAutosize: true, + + pluginPath: 'assets/js/lib/relive/', }); -}); \ No newline at end of file +}); -- cgit v1.2.3