HTML5 videos doesnt play in android - android

I am trying to add a html5 video in my website however the video doesnt play in Samsung Galaxy Tab 2 (Android 4.1.1). I used videojs as my plugin. To make sure that the device really can play those videos, I visited this (http://praegnanz.de/html5video) website and try to play they're each video but unfortunately it didn't. I wonder what cause the issues and I am hoping for any help. Thank you!

please check whether your stock browser supports html5
Try installing chrome or Opera web browser

There are a few things you must check, depending on the web browser you're using :
Video format: Some browsers accept H264/MP4 but not WebM (or vice versa).
autoplay: Some browsers (like Chrome for Android) do not respect the autoplay attribute, to save bandwith. On these browsers, an explicit user action is required (like a click).

Related

Can video autoplay on mobile devices

I had always heard this was a disabled feature on all mobile devices but I was corrected earlier today when I went to youtube.com from my android phone and lo and behold, it played on its own. Is this possible with jwplayer? Is it possible on any other player other than youtube?I've tried this in the past using all the built in features as well as some javascript workarounds such as clicking the play button when the page has loaded.
I understand bandwidth usage but what about streaming media sites that users KNOW they are about to watch a video.. after-all that's why they went to that site.
I never have seen that a video is opened automatically in mobiles or tablets.
I just tried myselft with youtube, and it does not play automatically if you use the web browser. However It does play automatically if you open the video with the youtube app.
Can you provide a link where this is happening? and the details of where are you testing this (browser, device,...) ?
Some Android devices may allow it to autostart. iPad may allow it. iPad does allow inline videos to play one at a time.

Embedded youtube playback in Crosswalk XWalkView

I am using Crosswalk to develop a HTML5 app. Now i have a problem with playback of embedded youtube videos within the website. I have the same issue testing the website in Chrome browser. There is no issue testing in Dolphin Browser or android default browser (< Android 4.3).
I had the problem in the past also with default android browser, but i can enable playback by setting user-agent to desktop browser. That doesn't work for the crosswalk browser.
If i run the app not on a smartphone but on a tablet it works, also in Chrome with default settings.
Does anybody has an idea/solution to enable video playback on smartphone?
Thank You!
Solved. Google's intention was, that every Android Smartphone would have installed the same basic codecs.
It seems that not every manufactor of cheap Android Smartphone (from China in this case) meets these requirements (even if Play Store is installed).
There is a way to display installed codecs on smartphone.

What does "install Flash plugin" in WebView mean?

In a small WebView app I wrote, I am able to load YouTube and see the picture the represents a video clip, with the familiar right-pointing arrow that is supposed to start playing the video:
But... when I touch that arrow, nothing happens (the video is NOT played).
I did enable the plugins setting in WebView, but that didn't help:
mWebView.getSettings().setPluginsEnabled(true);
So, I searched for more clues about how to make Flash (YouTube) run embedded in my WebView and I found the following hint:
I think you also need Flash to be
installed, like in Android 2.2 and
above.
I am OK with the requirement for Android 2.2 but what I don't understand is what "install Flash plugin" means: YouTube plays fine in Android's default browser (which is based on WebView AFAIK) and also in the YouTube app that's also installed in my device. Doesn't that mean that the Flash plugin is already installed?
If the answer is "no", what do I need to do to install it?
The Adobe Flash plugin is available from the Android Market for Android 2.2+ devices.
It may come pre-installed on a few devices, but on most it does not.
Search for "Adobe Flash" in the Android market to download it, then try running your app again.
Youtube got a HTML5 version, which means you can watch their videos without having flash installed. So better check flash suppport on a site where you can be sure that only flash is being used, eg http://www.adobe.com/software/flash/about/ which also tells you what version of flash you got installed.
Could it be a problem related to Javascript not being enabled on the webview?
myWebView.getSettings().setJavaScriptEnabled(true);

what audio formats are supported by the android browser?

What audio formats can be played using the html5 'audio' tag in the android browser? Does anyone know where to find official specs on what the android browser supports and not?
For the record, the android media formats page does not seem to cover this - I have soundfiles (3gp) playing fine in a native app, but they won't play in my webapp.
The webkit docs also do not seem to help. My soundfiles play fine in my webapp on iphone, so that version of webkit handles them fine. Shouldn't the android browser have some official documentation somewhere?
Probably there should be official documentation. If you want to test it, why not make a web page on some domain you have access to, with links to all of the different sound files you can think of, and point your browser at it.
After some testing, I've concluded that support for the HTML5 audio element is broken in Android 2.1. Details of my testing can be found on my blog. I tested on an HTC Desire running Android 2.1 and HTC Sense, whereas Amos confirmed the same error on his HTC Heor running a custom 2.1 ROM (thanks, Amos!). If anyone will try the testpage in different configurations and report back either here or on my blog, I will update with any new information.

Does Android 2.1's Browser Support HTML 5 and What Video Format Does It Play?

The company I work for produces a lot of video and we want to target as many devices as possible, but the question came up of what does the Android do?
I personally own an Android based phone running 2.1, but I can't seem to get the HTML 5 tag to work. Even when I can trigger the browser to playback the video it just throws a notification error that it can't.
Are there guidelines to producing Android/HTML 5 compatible videos? Is it truly supported?
The android 2.1 browser currently does not support the html5 video tag the way the iphone browser does. To get the android browser to play the video when you click on the poster image you need to add onclick="this.play();" to the video tag. However, this launches a separate "window" and does not play the video in the same browser "window".
The only information I could find with details about whether Android 2.1 has the ability to play html5-video is here: http://groups.google.com/group/android-developers/browse_thread/thread/400dc61d41530242/c071c0f9712f7171?lnk=gst&q=html5#c071c0f9712f7171
This question is similar: Does html5 video work on android nexus one with android version 2.1?

Categories

Resources