We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49ac0b0 commit dbd5b52Copy full SHA for dbd5b52
src/scripts/interactive-video.js
@@ -913,6 +913,16 @@ InteractiveVideo.prototype.addControls = function () {
913
// Add bookmarks
914
this.addBookmarks();
915
916
+ // If we change to a shorter video we need to remove the endscreens that are after the new length
917
+ if (this.options.assets.endscreens && this.options.assets.endscreens.length >0) {
918
+ for (let i = 0; i<this.options.assets.endscreens.length; i++) {
919
+ const endscreen = this.options.assets.endscreens[i];
920
+ if(endscreen.time > this.getDuration()) {
921
+ this.options.assets.endscreens.splice(i,1);
922
+ }
923
924
925
+
926
// Add endscreens
927
this.addEndscreenMarkers();
928
0 commit comments