aboutsummaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authorFlorian Larysch2016-12-29 00:33:22 +0100
committerFlorian Larysch2016-12-29 00:33:22 +0100
commitff785d9ed55378263bf3b130bb473c815b20b637 (patch)
treefebf627a58e5a810c456d1c9a85c293bb538bd06 /assets
parent3b896417ec6424130e85f21c5ce44a0525fe0395 (diff)
add initial player
Diffstat (limited to 'assets')
-rw-r--r--assets/js/lustiges-script.js29
1 files changed, 14 insertions, 15 deletions
diff --git a/assets/js/lustiges-script.js b/assets/js/lustiges-script.js
index 63227a3..56636b6 100644
--- a/assets/js/lustiges-script.js
+++ b/assets/js/lustiges-script.js
@@ -19,21 +19,20 @@ $(function() {
features: ['playpause', 'volume', 'current']
});
- $('body.relive-player video.mejs').mediaelementplayer({
- mode: 'auto_plugin',
- plugins: ['flash'],
- flashName: 'flashmediaelement.swf',
- pluginPath: '../assets/mejs/',
- enableAutosize: true,
- success: function (mediaElement) {
- mediaElement.addEventListener('canplay', function () {
- // skip forward to scheduled beginning of the talk at ~ 0:14:30 (30 sec offset, if speaker starts on time)
- if ( mediaElement.currentTime == 0 ) {
- mediaElement.setCurrentTime(870);
- }
- })
- }
- });
+ var $relivePlayer = $('body.relive-player .video-wrap');
+ if($relivePlayer.length > 0) {
+ var player = new Clappr.Player({
+ baseUrl: 'assets/clapprio/',
+ source: $relivePlayer.data('m3u8'),
+ height: $relivePlayer.data('height'),
+ width: $relivePlayer.data('width'),
+ /*vents: {
+
+ }*/
+ });
+
+ player.attachTo($relivePlayer.get(0));
+ }
$(window).on('load', function() {
$(window).trigger('resize');