asap-viewer 12.6.23 → 12.6.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/asap-viewer.umd.js +14 -2
- package/bundles/asap-viewer.umd.js.map +1 -1
- package/bundles/asap-viewer.umd.min.js +1 -1
- package/bundles/asap-viewer.umd.min.js.map +1 -1
- package/esm2015/lib/editor/components/video/video.component.js +15 -3
- package/esm5/lib/editor/components/video/video.component.js +15 -3
- package/fesm2015/asap-viewer.js +14 -2
- package/fesm2015/asap-viewer.js.map +1 -1
- package/fesm5/asap-viewer.js +14 -2
- package/fesm5/asap-viewer.js.map +1 -1
- package/package.json +1 -1
|
@@ -5530,7 +5530,7 @@
|
|
|
5530
5530
|
* @return {?}
|
|
5531
5531
|
*/
|
|
5532
5532
|
function (event) {
|
|
5533
|
-
if (event.data === 1) {
|
|
5533
|
+
if (event.data === 1) { // PLAYING
|
|
5534
5534
|
_this.timeLapseTimer = setInterval((/**
|
|
5535
5535
|
* @return {?}
|
|
5536
5536
|
*/
|
|
@@ -5552,12 +5552,24 @@
|
|
|
5552
5552
|
_this.disableNextButton = false;
|
|
5553
5553
|
}
|
|
5554
5554
|
_this.videoTime.emit(time);
|
|
5555
|
+
_this.cdr.detectChanges();
|
|
5555
5556
|
if (videoProgress >= 100) {
|
|
5556
5557
|
clearInterval(_this.timeLapseTimer);
|
|
5557
5558
|
}
|
|
5558
5559
|
}), 1000);
|
|
5559
5560
|
}
|
|
5560
|
-
if (event.data === 2) {
|
|
5561
|
+
if (event.data === 2) { // PAUSED
|
|
5562
|
+
clearInterval(_this.timeLapseTimer);
|
|
5563
|
+
}
|
|
5564
|
+
if (event.data === 0) { // ENDED
|
|
5565
|
+
_this.disableNextButton = false;
|
|
5566
|
+
_this.videoTime.emit({
|
|
5567
|
+
current: event.target.getDuration(),
|
|
5568
|
+
duration: event.target.getDuration(),
|
|
5569
|
+
progress: 100,
|
|
5570
|
+
id: _this.id
|
|
5571
|
+
});
|
|
5572
|
+
_this.cdr.detectChanges();
|
|
5561
5573
|
clearInterval(_this.timeLapseTimer);
|
|
5562
5574
|
}
|
|
5563
5575
|
})
|