Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Video capturing but not displaying

$
0
0

@Nikhil_dhar123 wrote:

Hi guys I am capturing video but when tried to show in my html its not displaying..

let options: CaptureVideoOptions =
      {
        limit: 3
      };

    this.mediaCapture.captureVideo(options).then(
      (data1: MediaFile[]) => {
        for (var i = 0; i < data1.length; i++) {
          let temp = data1[i];
            this.safeUrl = this.sanitizer.bypassSecurityTrustUrl(temp.fullPath);
            alert(this.safeUrl);
            this.storeVideoPath.push({ "src": this.safeUrl });
        }
      },
      (err: CaptureError) => alert(err)
    )

the above I have also tried without byPassstill didn't work
below html code

<ion-item *ngFor="let video of storeVideoPath" class="col">
        <video controls="controls" preload="metadata" autoplay="autoplay" webkit-playsinline="webkit-playsinline" class="videoPlayer">
          <source src= "{{video.src}}" type="video/mp4"/></video>
      </ion-item>

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>