简体   繁体   中英

How play video from sd-card cordova phonegap

I am new to cordova phonegap, i want to browse the video from sdcard and play the video in android. I have tried by hard coding the file uri,

   <video id="1"   width="100%"  >
      <source src="file:///storage/0/emulated/videos/video3.mp4" type="video/mp4" />
   </video>

it is not working.

Please help me.

Did you try to call

var myVideo = document.getElementById("1");
myVideo.load();

in your script?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM