Videos in PhoneGap - Android - android

I'm trying to set a video in my Cordova 2.9.0 app by using the HTML5 video tag, I have already tried the Plugin https://github.com/macdonst/VideoPlayer but still doesn't work.
When I run my app all I see is a white square where I should be seeing the poster of the video with the controls and when I want to play it an error message ("Sorry, this video cannot be play") shows up.
I've read a lot about this but couldn't find any solution that works.
Any suggestion?
Your browser does not support the video tag.

Related

Android webview video play inline on 4.2

I'm building an app with a WebView thats supposed to play a mp4 video inline (not fullscreen) by html5 "video" tag.
It worked on my tablet(also 4.2), but failed on another target device.
Tested with default browser, always played in fullscreen and can't play second time.
I tried changing Webview Class to VideoEnabledWebView which says could solve most video problem,
but my webview still can't play video inline, only in fullscreen.
Then I install Chrome browser to test, Chrome could play video inline, but it's abnormal.
test image
Did anyone manage to solve it? Help would be much appreciated!

Autoplay attribute for HTML 5 in android devieces

I am trying to integrate an HTML 5 video player with It's auto-play attribute on my site. It is working fine on Web and other devices but it is not working with any android device which has 4.0 and above OS. I have seen this Link.But I am looking if there is any workaround for this issue.
Note:I have also tried implementing jwplayer but later on I found that it doesn't support the autoplay for android and ios devices.
PS : I have tried to put an image on top of video and clicking on that should trigger an autoplay but still no success.
The only approach I know of is to provide a user interaction before the video begins to play like a 'touch to enter site' button, then on that event play the video. Playing video or audio in HTML5 requires user interaction on Android and iOS. It is by design - no workaround as of today is available. You can read here for confirmation.
You can read here for the whys and hows on iOS (which is the same info as on your Google link).

Youtube videos in phonegap & android

I have a problem with playinh youtube videos in my app.
I have a page with embed video. When i tap on video, loader appears, everything is ok.
When loader dissapears, it should start playing. But in my application there is white screen appears.
On LogCat at this moment i can see this:
CordovaLog showing Custom View
Problem fixed, by using plugin.
But, i have the same problem with VIMEO.
This plugin will help you to play a YouTube video in a Phonegap/Cordova app:
https://github.com/remcob00/cordova-phonegap_youtube_player_api_android

Video playing on Android

I am working with an Android and PhoneGap application and am using the HTML5 video tag to play videos on my web page. When I play the video I get the audio output but the video is not visible. How can I play a HTML5 video on Android?
I've written about this issue a number of times. See my previous answer:
Playing video on AVD with phonegap
Also, I'm working on monkey patching the video tag on Android so hopefully we'll have something even better soon.

Playing video file in Android

I want to play the video file and it's like
http://test.XXXX.com/myfile.wmv
am using Video view for that but it saying unable to play video error
I tried using WebView also but it showing only blank page.
Just i want to play that video link file in device online.
How to do that ?
Note : The links are working i tested on Windows browser.
Thanks
You will have to transcode the video to an android supported format and make the result available on your server as well.
http://developer.android.com/guide/appendix/media-formats.html provides an official overview of supported forms, but you may have more practical look googling for instructions on transcoding for android devices.

Categories

Resources