Skip to content

Commit

Permalink
JI-5798 fix auto pause when video ended (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
devland authored Mar 19, 2024
1 parent a4df14e commit 2f9f86d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/video.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ H5P.Video = (function ($, ContentCopyrights, MediaCopyright, handlers) {
self.play();
}
}
else if (state !== Video.PAUSED) {
else if (state !== Video.PAUSED && state !== Video.ENDED) {
self.autoPaused = true;
self.pause();
}
Expand Down Expand Up @@ -272,7 +272,7 @@ H5P.Video = (function ($, ContentCopyrights, MediaCopyright, handlers) {
* @constant {Number}
*/
Video.VIDEO_CUED = 5;


// Used to convert between html and text, since URLs have html entities.
var $cleaner = H5P.jQuery('<div/>');
Expand Down

0 comments on commit 2f9f86d

Please sign in to comment.