Skip to content

Commit

Permalink
Revert "Fix video and IV reset poster when BQ's Back pressed"
Browse files Browse the repository at this point in the history
This reverts commit 064a90f.
  • Loading branch information
Hannaes committed Jun 7, 2021
1 parent 865c82d commit 634d2ef
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions scripts/libraryScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -621,9 +621,6 @@ H5P.BranchingScenario.LibraryScreen = (function () {

let ivSubmitScreenStar = this.wrapper.getElementsByClassName('h5p-star-foreground')[0];
ivSubmitScreenStar.classList.remove('h5p-star-active');

let ivSubmitBtnContainer = this.wrapper.getElementsByClassName('h5p-interactive-video-endscreen-submit-button-container')[0];
ivSubmitBtnContainer.classList.add('h5p-interactive-video-endscreen-submit-button-hidden');
};

LibraryScreen.prototype.handleProceedAfterVideo = function () {
Expand Down Expand Up @@ -1292,7 +1289,7 @@ H5P.BranchingScenario.LibraryScreen = (function () {
&& typeof this.currentLibraryInstance.resetTask !== "undefined") {
this.resetIVProgress();
this.currentLibraryInstance.resetTask();
this.currentLibraryInstance.video.stop();
this.currentLibraryInstance.pause();
if (autoPlay && this.currentLibraryInstance.play !== undefined) {
this.currentLibraryInstance.play();
}
Expand All @@ -1304,7 +1301,7 @@ H5P.BranchingScenario.LibraryScreen = (function () {
if (this.currentLibraryInstance.libraryInfo.machineName === "H5P.Video"
&& typeof this.currentLibraryInstance.seek !== "undefined") {
this.currentLibraryInstance.seek(0);
this.currentLibraryInstance.stop();
this.currentLibraryInstance.pause();
if (autoPlay && this.currentLibraryInstance.play !== undefined) {
this.currentLibraryInstance.play();
}
Expand Down

0 comments on commit 634d2ef

Please sign in to comment.