aboutsummaryrefslogtreecommitdiff
path: root/assets/js/lustiges-relive-script.js
diff options
context:
space:
mode:
Diffstat (limited to 'assets/js/lustiges-relive-script.js')
-rw-r--r--assets/js/lustiges-relive-script.js25
1 files changed, 14 insertions, 11 deletions
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
+});