Sha256: c0fa6c0612bb7359e0d79f3779a5929baf9d43cb0c5d8b7fa71c89e0d0c1a88f

Contents?: true

Size: 953 Bytes

Versions: 3

Compression:

Stored size: 953 Bytes

Contents

//= require ./media_player

//= require_self

//= require ./video_player/media_events
//= require ./video_player/prebuffering
//= require ./video_player/buffer_underrun_waiting
//= require ./video_player/src_from_options_method
//= require ./video_player/play_button_patch
//= require ./video_player/player_buffered_patch
//= require ./video_player/filter_for_silk
//= require ./video_player/lazy

pageflow.VideoPlayer = function(element, options) {
  options = options || {};

  element = pageflow.VideoPlayer.filterSourcesForSilkBrowser(element);
  var player = vjs(element, options);

  pageflow.VideoPlayer.prebuffering(player);
  pageflow.VideoPlayer.srcFromOptionsMethod(player);

  if (options.mediaEvents) {
    pageflow.VideoPlayer.mediaEvents(player, options.context);
  }

  if (options.bufferUnderrunWaiting) {
    pageflow.VideoPlayer.bufferUnderrunWaiting(player);
  }

  pageflow.mediaPlayer.enhance(player, options);

  return player;
};

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pageflow-0.9.2 app/assets/javascripts/pageflow/video_player.js
pageflow-0.9.1 app/assets/javascripts/pageflow/video_player.js
pageflow-0.9.0 app/assets/javascripts/pageflow/video_player.js