@dataclouder/ngx-agent-cards 0.1.85 → 0.1.87
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.
|
@@ -3647,6 +3647,7 @@ class VideoPlayerNativeService {
|
|
|
3647
3647
|
this.playNextInQueue();
|
|
3648
3648
|
}
|
|
3649
3649
|
playNextInQueue() {
|
|
3650
|
+
console.log('Playing next in queue');
|
|
3650
3651
|
if (this.videoQueue.length > 0) {
|
|
3651
3652
|
const videoUrl = this.videoQueue.shift();
|
|
3652
3653
|
if (videoUrl && this.videoElement) {
|
|
@@ -3655,9 +3656,18 @@ class VideoPlayerNativeService {
|
|
|
3655
3656
|
}
|
|
3656
3657
|
}
|
|
3657
3658
|
else if (this.defaultVideoUrl && this.videoElement) {
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3659
|
+
console.log('Playing default video');
|
|
3660
|
+
if (this.videoElement.src !== this.defaultVideoUrl) {
|
|
3661
|
+
this.videoElement.src = this.defaultVideoUrl;
|
|
3662
|
+
this.videoElement.play();
|
|
3663
|
+
}
|
|
3664
|
+
else {
|
|
3665
|
+
this.videoElement.currentTime = 0;
|
|
3666
|
+
this.videoElement.play();
|
|
3667
|
+
}
|
|
3668
|
+
}
|
|
3669
|
+
else {
|
|
3670
|
+
console.log('No default video');
|
|
3661
3671
|
}
|
|
3662
3672
|
}
|
|
3663
3673
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: VideoPlayerNativeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
@@ -3962,7 +3972,6 @@ class MessageContentDisplayer {
|
|
|
3962
3972
|
}, ...(ngDevMode ? [{ debugName: "hasTranscription" }] : []));
|
|
3963
3973
|
effect(() => {
|
|
3964
3974
|
const currentMsg = this.message();
|
|
3965
|
-
console.log('currentMsg', currentMsg);
|
|
3966
3975
|
if (currentMsg) {
|
|
3967
3976
|
this.initializeBasedOnMessage(currentMsg);
|
|
3968
3977
|
}
|
|
@@ -7416,7 +7425,6 @@ class DcAgentCardDetailsComponent {
|
|
|
7416
7425
|
}
|
|
7417
7426
|
ngAfterViewInit() {
|
|
7418
7427
|
if (this.videoPlayer) {
|
|
7419
|
-
// this.videoPlayerService.initializePlayer(this.videoPlayer, this.useNativePlayer);
|
|
7420
7428
|
this.videoPlayerService.initializePlayer(this.videoPlayer);
|
|
7421
7429
|
}
|
|
7422
7430
|
}
|