Skip to content

Commit

Permalink
[Bug-fix] Fixed missing initialization of play_attempt which forces t…
Browse files Browse the repository at this point in the history
…he video to always play from the scrub buffer
  • Loading branch information
marktaipan-cvisionai authored and jrtcppv committed Dec 17, 2021
1 parent 0e9a40d commit 3f3fd24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/static/js/annotator/video.js
Original file line number Diff line number Diff line change
Expand Up @@ -2240,7 +2240,7 @@ class VideoCanvas extends AnnotationCanvas {
// quality frame out of the on-demand buffer.
if (this._play_idx != this._scrub_idx)
{
this._videoElement[this._play_idx].forTime(time, "play", direction, this._numSeconds);
play_attempt = this._videoElement[this._play_idx].forTime(time, "play", direction, this._numSeconds);
}

// To test degraded mode (every 10th frame is degraded):
Expand Down

0 comments on commit 3f3fd24

Please sign in to comment.