What does "install Flash plugin" in WebView mean? - android

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);

Related

Cordova sound bug on android

i made a simple android app with cordova to play audio whenever a button is clicked. it works on my huawei phone (android 5.1.1) and the google emulator, but it does NOT work on any other android phones (android 4.x [4.1;4.2;4.4]).
i have the media plugin installed into the project, haven't done any android-version specific restrictions
index.js: http://puu.sh/mrY3g/9d4a99d3e9.txt
config.xml: http://puu.sh/mrY7a/ae9b06aa51.txt
thanks a lot
ps. if u need more files for investigation/troubleshooting, leave a comment :)
EDIT
It was something with Content Security Policy, fixed that, but now when i logcat my phone, when i try to play the .mp3 file, it says Permission Denied. This happens ONLY on android 4.x (On browser and android 5 works perfectly). Any help is appreciated.
I changed the way sound is played from onclick(function a) where in a() was made an audio/media control (backend) which played the sound. now i made an <audio> control in the html and via javascript i play it

do flash supported in all major browser(window,android,ios,mac)?

i am developing PHP/MYSQL/HTML based website, my website contains flash content, i have used flash based audio recorder on my website.
user will access my website from any device like window PC/phone, mac, android, i phone , i pad.
i want to know, flash content will be loaded on these devices without any issues or will need to install any plugin
forcing user to install plugin is not the right thing
and if using flash is not the right thing, what are the other options for audio recorder ?
Flash is not available on anything but very old Android devices. 90% sure it's not available on iOS. Likewise, it's disappearing from desktop browsers as well.

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.

HTML5 videos doesnt play in 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).

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