Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions js/jquery.InteractiveVideoVimeoPlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@ $( document ).ready(function() {

var conf = il.InteractiveVideoVimeoPlayer.config;
conf.vimeo_player = new Vimeo.Player(player_id, {loop: false});

// Adding a player object to handle Vimeo fullscreen settings.
var player = {
fullscreen: {
active: conf.vimeo_player.getFullscreen(),
exit: function () { return conf.vimeo_player.exitFullscreen(); },
}
}
il.InteractiveVideo[player_id].player = player;
il.InteractiveVideoPlayerAbstract.config[player_id] = {
pauseCallback: (function () {
conf.vimeo_player.pause(player_id);
Expand All @@ -40,7 +49,8 @@ $( document ).ready(function() {
return current_time;*/
}),
setCurrentTimeCallback: (function (time) {
conf.vimeo_player.setCurrentTime(time, player_id);
conf.time = time;
// conf.vimeo_player.setCurrentTime(time, player_id);
})
};
conf.vimeo_player.on('timeupdate', function (data) {
Expand Down Expand Up @@ -81,4 +91,4 @@ $( document ).ready(function() {
il.InteractiveVideoPlayerComments.fillEndTimeSelector(il.InteractiveVideoPlayerAbstract.duration(player_id));
}
});
});
});
Loading