control video
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user