Sha256: 8aeee73ef77e030782417eb8e02a94aea67f33cd15bcccda193e1f178fb716c8

Contents?: true

Size: 874 Bytes

Versions: 3

Compression:

Stored size: 874 Bytes

Contents

//= 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);
  }

  return player;
};

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pageflow-0.8.2 app/assets/javascripts/pageflow/video_player.js
pageflow-0.8.1 app/assets/javascripts/pageflow/video_player.js
pageflow-0.8.0 app/assets/javascripts/pageflow/video_player.js