Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48983

Can't play video with local file in android

$
0
0

i have avi file in local file directory
file:///storage/emulated/0/ionic_download/2022-02-07/18/18-59-32.avi
but the problem is that I want to play video with above file path.

data[i].toURL() is above file path

  • html
 <video controls autoplay width="{{top_box_width}}" height="{{top_box_height}}">
        <source [src]="play_path" type="video/mp4">
        
      </video>
  • .ts

let myURL = normalizeURL(data[i].toURL() ) + "#t=0.1";
          console.log("222"+myURL);
          let savePath = this.sanitizer.bypassSecurityTrustResourceUrl(data[i].toURL());
          this.play_path = myURL

both myURL and savePath is not playing video…
how can I play video?
thank you

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 48983

Trending Articles



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