troubleshooting Question

How to play .mp4 files from sd card on android using phonegap

Avatar of SwiftCoder
SwiftCoder asked on
HTMLResponsive WebAndroid
3 Comments1 Solution3588 ViewsLast Modified:
Hello,


I am using PhoneGap for android and IOS app for android application,


my videos are in the SD card and im trying to play video in the page itself using <video> tag

my video tag code

<video width="520px" controls>
        <source  type="video/mp4" src="file:///sdcard/videos/file.mp4">
</video>

but its showing blank video icon on the page

--------------------------------------------------------------------------------
And also i tried a video plugin


http://simonmacdonald.blogspot.in/2011/11/video-player-plugin-for-phonegap.html
 and i'm using the above video plugin in phonegap

 

i had followed all the instructions for the plugin

i gave my video playing path as
file:///sdcard/videos/file.mp4


But when i'm tryin to play video it throws an error
sorry this video cannot be played


Can u guys please mention how to fix this problem



Thanks
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 3 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros