Playing local IPhone Videos with PhoneGap

320 views
Skip to first unread message

AP

unread,
Oct 5, 2010, 2:38:59 PM10/5/10
to phonegap
Playing local IPhone Videos with PhoneGap

Can anyone tell me if it is POSSIBLE to access local videos stored on
an IPhone with PhoneGap
If yes, what should the path looks like?


As a way to save ( a lot... ) of bandwidth, I would like to store
videos directly on IPhones that would be distributed to our visitors
and the apps would first try to load the local copy of the video, and
if it is not found ( for people with other IPhone devices that the one
distributed ) it would load the file remotly.

Can anyone tell me if it is possible to do?

Thx a lot ! :)

Giacomo Balli

unread,
Oct 5, 2010, 6:08:59 PM10/5/10
to phonegap
it is possible... ;)

Shazron Abdullah

unread,
Oct 5, 2010, 7:56:26 PM10/5/10
to AP, phonegap
Put in your www directory (your web root) or a path off it.
If its in your web root, refer to it directly by filename -- else append the relative path

> --
> You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to phon...@googlegroups.com
> To unsubscribe from this group, send email to
> phonegap+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/phonegap?hl=en?hl=en
>
> For more info on PhoneGap or to download the code go to www.phonegap.com

Samuel Michelot

unread,
Oct 6, 2010, 6:26:40 AM10/6/10
to phonegap
Yes, i do it in my app.

If you put your video in wwww/video/myvideo.mp4 , the path will be
"video/myvideo.mp4"

And you can test if the video exists in local with JS.

If you need help for the encoding settings, you can look at this blog
post:
http://www.mosacrea.com/how-to-create-a-screencast-video-for-a-mobile-iphone-or-android-application-with-your-mac/
(look at "iMovie Quicktime export for iPhone" chapter)


On Oct 5, 8:38 pm, AP <boule...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages