videoionic4cordova-media-plugin

How to show Video preview in my ionic html page. I have just Video URL from my web server


I want to show my video preview to fetch Video URL just like http://url/videos/1234.mp4 from my web server. how to show video preview on my video.html page?

<video poster="{{review.videoPath}}" preload="auto">
  <source [src]="review.videoPath" type="mp4">
</video>

Solution

  • I done with this. I can overlay my content and play/pasue video onclick.

    <video #videoTag style="width: 100%; position: absolute;" [autoplay]="true (click)="videocontorl($event)" *ngIf="isShow"> 
        <source [src]="videoPath" type="video/mp4"> 
    </video>