diff --git a/src/app/pages/playgrdview/playgrdview.page.html b/src/app/pages/playgrdview/playgrdview.page.html
index 5164b66..0da971a 100644
--- a/src/app/pages/playgrdview/playgrdview.page.html
+++ b/src/app/pages/playgrdview/playgrdview.page.html
@@ -18,36 +18,47 @@
-
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
-
Play Video
+
+ Play Video
-
+ Stop Video
+
+
+
+
{{groundDetail.spec.title}}
diff --git a/src/app/pages/playgrdview/playgrdview.page.ts b/src/app/pages/playgrdview/playgrdview.page.ts
index f2663fa..1cce366 100644
--- a/src/app/pages/playgrdview/playgrdview.page.ts
+++ b/src/app/pages/playgrdview/playgrdview.page.ts
@@ -20,8 +20,8 @@ current_media:string = '';
private wrenchService: WrenchService,
) {
this.groundDetail = this.router.getCurrentNavigation().extras.state;
- //this.current_media = this.groundDetail.spec.media;
- this.current_media = "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4";
+ this.current_media = this.groundDetail.spec.media;
+ // this.current_media = "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4";
}
ngOnInit() {
@@ -32,17 +32,16 @@ current_media:string = '';
@ViewChild('video') myVideo: ElementRef;
+ showPlay:boolean= true;
playVideo(){
-
this.myVideo.nativeElement.src = this.current_media;
- alert( this.myVideo.nativeElement.src) ;
- this.myVideo.nativeElement.load();
+ //alert( this.myVideo.nativeElement.src) ;
+ //this.myVideo.nativeElement.load();
this.myVideo.nativeElement.play();
+ this.showPlay= false;
}
stopVideo(){
-
-
-
+ this.showPlay= true;
this.myVideo.nativeElement.pause();
}
}