control video

This commit is contained in:
CHIEFSOFT\ameye
2024-07-13 16:11:33 -04:00
parent 24476bbebf
commit 946ceacf93
@@ -33,9 +33,15 @@ current_media:string = '';
@ViewChild('video') myVideo: ElementRef;
playVideo(){
this.myVideo.nativeElement.src = this.current_media;
alert( this.myVideo.nativeElement.src) ;
this.myVideo.nativeElement.play();
}
stopVideo(){
this.myVideo.nativeElement.pause();
}
}