mirror of
https://github.com/videojs/video.js.git
synced 2024-11-28 08:58:46 +02:00
Fixed a bug where Chrome shows the poster and plays audio if you set the currentTime too quickly.
This commit is contained in:
parent
c8533e4368
commit
1138ffae7d
@ -131,6 +131,7 @@ Changelog
|
||||
---------
|
||||
1.1.4
|
||||
|
||||
- Feature: Added loading spinner.
|
||||
- Feature: Added volume() function to get and set volume through the player.
|
||||
- Fix: Fix issue where FF would loop video in background when ended.
|
||||
|
||||
|
5
video.js
5
video.js
@ -144,6 +144,7 @@ var VideoJS = JRClass.extend({
|
||||
this.video.addEventListener("playing", this.onPlaying.context(this), false);
|
||||
this.video.addEventListener("waiting", this.onWaiting.context(this), false);
|
||||
this.video.addEventListener("stalled", this.onStalled.context(this), false);
|
||||
this.video.addEventListener("suspend", this.onSuspend.context(this), false);
|
||||
|
||||
// Listen for clicks on the big play button
|
||||
this.bigPlayButton.addEventListener("click", this.onPlayControlClick.context(this), false);
|
||||
@ -616,6 +617,7 @@ var VideoJS = JRClass.extend({
|
||||
},
|
||||
|
||||
onStalled: function(event){},
|
||||
onSuspend: function(event){},
|
||||
|
||||
onLoadStart: function(event){
|
||||
this.showSpinner();
|
||||
@ -699,7 +701,8 @@ var VideoJS = JRClass.extend({
|
||||
// When the user stops dragging on the progress bar, update play position
|
||||
// Backup for when the user only clicks and doesn't drag
|
||||
onProgressHolderMouseUp: function(event){
|
||||
this.setPlayProgressWithEvent(event);
|
||||
// Removed. Chrome breaks (shows poster, plays audio) if you set currentTime rapidly.
|
||||
// this.setPlayProgressWithEvent(event);
|
||||
|
||||
// Fix for a play button state issue.
|
||||
if (this.video.paused) {
|
||||
|
Loading…
Reference in New Issue
Block a user