Piyush
Piyush

Reputation: 3071

Can i play video in Phonegap using Phonegap Build

I want to play video from phonegap.I am Using Phonegap build. I search in Phonegap Doc in this Link. But i think they only audio files play written in the docs..

So can anyone tell me its possible to play video files in phonegap using phonegap build

Upvotes: 0

Views: 1143

Answers (2)

Mark McCorkle
Mark McCorkle

Reputation: 9414

Yes, phonegap just creates a native iOS app using a UIWebView so you can run your HTML code. You can access any iOS features from within the app. I'm sure the same is for Android.

Playing a video can be as simple as just opening the file locally.

For instance

<video controls>
<source src="yourVideo.m4v">
</video>

Here is a reference from Apple

Upvotes: 2

Suhas_United
Suhas_United

Reputation: 237

HTML 5 video tag inside a phonegap app will play video.If that is not sufficient u can alwaya play video using native code and plugin to phoneGap.

Upvotes: 0

Related Questions