Skip to content

Commit

Permalink
Fixes a new bug introduced with the last prerelease.
Browse files Browse the repository at this point in the history
  • Loading branch information
moay committed Feb 8, 2017
1 parent 4b7bfba commit 0c1d083
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dist/afterglow.min.js

Large diffs are not rendered by default.

Binary file modified dist/afterglow.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion src/js/afterglow/components/Config.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class Config {
this.options.controls = true;

// Default tech order
this.options.techOrder = ["Html5","Flash"];
this.options.techOrder = ["Html5"];

// Some default player parameters
this.options.preload = this.getPlayerAttributeFromVideoElement('preload','auto');
Expand Down
4 changes: 2 additions & 2 deletions vendor/videojs/plugins/videojs.hotkeys.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
enableFullscreen: true,
enableNumbers: true,
enableJogStyle: false,
alwaysCaptureHotkeys: false,
alwaysCaptureHotkeys: true,
enableModifiersForNumbers: true,
playPauseKey: playPauseKey,
rewindKey: rewindKey,
Expand Down Expand Up @@ -73,7 +73,7 @@
// Remove player outline to fix video performance issue
pEl.style.outline = "none";

if (alwaysCaptureHotkeys || !player.autoplay()) {
if (alwaysCaptureHotkeys) {
player.one('play', function() {
pEl.focus(); // Fixes the .vjs-big-play-button handing focus back to body instead of the player
});
Expand Down

0 comments on commit 0c1d083

Please sign in to comment.