Made sure that cue points for midrolls are not displayed when the ad rule for a midroll doesn't exceed the total play time of a video.
This commit is contained in:
		| @ -206,7 +206,7 @@ class Ads { | ||||
|  | ||||
|         // Add advertisement cue's within the time line if available | ||||
|         this.cuePoints.forEach(cuePoint => { | ||||
|             if (cuePoint !== 0 && cuePoint !== -1) { | ||||
|             if (cuePoint !== 0 && cuePoint !== -1 && cuePoint < this.player.duration) { | ||||
|                 const seekElement = this.player.elements.progress; | ||||
|  | ||||
|                 if (seekElement) { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user