3

i am using videogular2 for playing video files. Playing streaming videos was done successfully and i want to play local video file as well. This is my code..

<vg-player>
      <vg-buffering></vg-buffering>
      <vg-scrub-bar [vgSlider]="true" style="display: none;">
      </vg-scrub-bar>
      <video [vgMedia]="media" #media id="singleVideo" preload="auto" controls>
        <source src="file:///storage/emulated/0/Kurnool%20Achars%20Chintana/telugu/adhyatma_rasaranjani_telugu_hyderabad_/VID-20180817-WA0002.mp4" type="video/mp4">
      </video>
  </vg-player>

And this was not playing local videos. How can i play local video in videogular2

Ravi arn
  • 484
  • 4
  • 13
  • If you're using WKWebView on iOS, your file path needs to be rewritten to `/storage/emulated/0/Kurnool%20Achars%20Chintana/telugu/adhyatma_rasaranjani_telugu_hyderabad_/VID-20180817-WA0002.mp4`(the same without the `file://` at the beginning). See the CORS section here: https://ionicframework.com/docs/wkwebview/ – jbgt Oct 23 '18 at 16:41
  • @ravi, have you found the solution? – sajalsuraj Aug 06 '20 at 19:05

0 Answers0