Implement a simple video player by phonegap

52 views
Skip to first unread message

Gao Yuan

unread,
Jun 7, 2011, 11:32:39 PM6/7/11
to phon...@googlegroups.com
Hello everyone! I'm new here.I just want to implement a video player based on PhoneGap, but there is no such API on official website. Some tells it can be implement by building API, but for a freshman, it's also not very clear. So I want more details about how to work on it. Is there anyone like to help me?  Or is there any other way to implement a video player based on PhoneGap?
Thanks!
I'm sorry about my English
                                                                               gao yuan, China

Nick McCloud

unread,
Jun 8, 2011, 11:56:26 AM6/8/11
to phonegap
In your html put <video src="myVideo.mp4></video>

See http://www.w3schools.com/html5/tag_video.asp for more info

Gao Yuan

unread,
Jun 9, 2011, 1:54:04 AM6/9/11
to phon...@googlegroups.com
Very thanks for your answer, mybe i did't describe my requirement clearly.  Html 5 is one way to implement it. But it can't be a common way, since not every 3G mobile support this tag. For one instance, I can't use this to play an mp4 on HTC G7 with android 2.2, while it works well in Chrome  on PC with Windows 7.
 
I have found AVideo written by Pierre, and it works. But i still think about how to transplant it to other opt system. Any help?
 
--
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

jcesar

unread,
Jun 9, 2011, 2:54:18 AM6/9/11
to phonegap
phonegap transforms html5 apps into native apps, so you have to use
the html5 video tag.

If you don´t want to use the html5 tag you should create native apps
on your own for every mobile SO.

On 9 jun, 07:54, Gao Yuan <gaoyuan5...@gmail.com> wrote:
> Very thanks for your answer, mybe i did't describe my requirement clearly.
> Html 5 is one way to implement it. But it can't be a common way, since not
> every 3G mobile support this tag. For one instance, I can't use this to play
> an mp4 on HTC G7 with android 2.2, while it works well in Chrome  on PC with
> Windows 7.
>
> I have found AVideo written by Pierre, and it works. But i still think about
> how to transplant it to other opt system. Any help?
>
> On Wed, Jun 8, 2011 at 11:56 PM, Nick McCloud <n...@descartes.co.uk> wrote:
> > In your html put <video src="myVideo.mp4></video>
>
> > Seehttp://www.w3schools.com/html5/tag_video.aspfor more info

Gao Yuan

unread,
Jun 9, 2011, 3:18:18 AM6/9/11
to phonegap
Thanks a lot, i'l just try for it. very thanks

On Jun 9, 2:54 pm, jcesar <jcesarmob...@gmail.com> wrote:
> phonegap transforms html5 apps into native apps, so you have to use
> the html5 video tag.
>
> If you don´t want to use the html5 tag you should create native apps
> on your own for every mobile SO.
>
> On 9 jun, 07:54, Gao Yuan <gaoyuan5...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Very thanks for your answer, mybe i did't describe my requirement clearly.
> > Html 5 is one way to implement it. But it can't be a common way, since not
> > every 3G mobile support this tag. For one instance, I can't use this to play
> > an mp4 on HTC G7 with android 2.2, while it works well in Chrome  on PC with
> > Windows 7.
>
> > I have found AVideo written by Pierre, and it works. But i still think about
> > how to transplant it to other opt system. Any help?
>
> > On Wed, Jun 8, 2011 at 11:56 PM, Nick McCloud <n...@descartes.co.uk> wrote:
> > > In your html put <video src="myVideo.mp4></video>
>
> > > Seehttp://www.w3schools.com/html5/tag_video.aspformore info
Reply all
Reply to author
Forward
0 new messages