We are using WebView to play local SWF files in our Android app.
WebView webview=(WebView)findViewById(R.id.web_play);
File decfile = new File("/mnt/sdcard/flashplay/temp/test.swf");
Uri uri = Uri.fromFile(decfile);
if(decfile.exists()){
webview.getSettings().setJavaScriptEnabled(true);
webview.getSettings().setPluginsEnabled(true);
webview.getSettings().setAllowFileAccess(true);
webview.loadUrl(uri.toString());
}
The code does not work in Jelly Bean, we have the flash plugin installed and able to play flash videos in Browser. But no luck in getting it played within our app in a WebView in Jelly bean.
First: Flash is no longer supported in since Android 4
Second: Chrome does not support the flash player
Third: You can install (with no guarantee) older flash versions on Android 4 manually and use it in the standard Browser.
Get old versions of flash from adobe here:
http://helpx.adobe.com/flash-player/kb/archived-flash-player-versions.html
just download the apk and open it. make sure you are trusting apks from other sources.
edit: on my device (samsung galaxy nexus with android 4.1.2) it works just fine.
alternatively there are a dozen other local flash players in the market. you can try to integrate them.
jelly bean and ics not support adobe flash and low versions only support flash like 2.3,2.2,2.1!
Adobe Systems also remove adobe flash app in google play shop!
"If a device is upgraded from Android 4.0 to Android 4.1, the current version of Flash Player may exhibit unpredictable behaviour, as it is not certified for use with Android 4.1," Adobe said.
Flash ICS some device working but,not working all devices properly!
Related
As I understand, WebGL is only supported in WebView in Android Lollipop (updating the WebView component in the Play Store), and newer versions (no Play Store update required).
However, I have an emulator using Android 7.1.1, and WebGL is not working. http://webglreport.com says "This browser supports WebGL 1, but it is disabled or unavailable.". I have also tried an Android 6.0 emulator, with the same result.
WebGL works fine in the emulator when using Chrome, but not in a WebView.
WebGL works fine in a WebView in a physical 6.0 phone.
What could be the reason why WebGL is not working in the same emulator, when using a WebView?
This turns out to be a limitation of the current version of the emulator: https://code.google.com/p/android/issues/detail?id=229984
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.
I need to display WebGL graphics in my webview. Is there any way to modify Android WebView to enable WebGL. If yes, How?
WebGL was not supported in WebViews before Android Lollipop. In KitKat, Android switched to Chromium as the native WebView implementation, but it is locked to Chromium 33, with no WebGL. In Lollipop, WebView is updated via the Play Store, and now supports WebGL. (source: https://developer.chrome.com/multidevice/webview/overview)
Trying to extend WebView to support it is next to impossible.
One thing you might consider, is use CSS 3D transformations instead of WebGL, those are supported on Android ICS and forward, see http://caniuse.com/#feat=transforms3d
WebGL is not supported in current Android webview, you can however use crosswalk-project which is a web runtime that supports WebGL and package it in a android app along with your WebGL app. The latest Intel XDK supports building Android apps with crosswalk runtime.
You can view WebGL on new Android devices using the Chrome Beta app or Firefox beta app. The only device I have tested and this worked on is the Asus Nexus 7 tablet running Android 4.2.2.
My Motorola Razr running Android 4.1.2 does not support WebGL with google Chrome Beta.
Not sure if this directly helps.. but FYI.
Although it is not possible to enable WebGL for Android WebView, there is an option to have native apps using WebGL for rendering using CocoonJS by Ludei (www.ludei.com). They even have a demo app in Google Play to show some known WebGL demos running even in Android 2.3 devices.
https://play.google.com/store/apps/details?id=com.ludei.demos.webgl
Even running on OUYA!
http://www.youtube.com/watch?v=ypyqkAo1jgo
I have chrome version 28.0 on OS 4.2.2 WebGl is not enabled by default you need to enable it by typying chrome://flags/ in seach bar just the way shwn in pic below
Once you have enabled web gl relaunch chrome and you will be able to run most of three.js experiments . I have shared screenshots for few :-
I also tried everything on webview but I was unable to set webgl flags. Probably it is not possible to use webgl in webviews .
I wanted to display H.264 videos with air packaging for mobile and run into a problem.
is StageVideo avaiable on mobile devices running IOS or android?
I use air 2.6 sdk for packaging and it seems there is no StageVideo on ipad?
I can use StageWebView but because of limitation of it ( it always
rendered on the top) this is not an option for me.
Is any schedule when would StageVideo be available for mobile? maybe
air 2.7 sdk?
What are other option to display such video format?
Thank you
From the Flash Player 10.2 for Android Release Notes:
Hardware accelerated video rendering for H.264 (On upcoming Honeycomb OS release only)
Flash Player 10.2 leverages the Stage
Video rendering pipeline to enable
users of Android 3.0 tablets, like the
Motorola Xoom, to enjoy smooth
playback of high-definition video in
Flash Player. Users will experience
reduced CPU usage and higher frame
rates for existing H.264 video
content.
So that is on Android Honeycomb only.
StageVideo is possible on iPhone with the latest AIR SDK.
You need to download the latest SDK and do an overlay install http://kb2.adobe.com/cps/908/cpsid_90810.html
Now build your file with StageVideo. Follow the standard packing steps for mobile.
But set rendermode to GPU instead of CPU. If you set rendermode wrong usually you can hear the audio.
This is how i got it working on my end on iPhone. However on Android I am getting no video but the audio stream even though Air 3.1 is installed on the phone. Am still looking into this issue.
Well, StageVideo doesn't seem to work for me in an Android 3.0 Honeycomb tablet (Acer Iconia) with Flash Player 10.2
When I use StageVideo only sound can be heard but video doesn't show, and I think I'm doing it properly, because in the desktop Flash Player for Firefox it works.
In the Iconia I have to resort to using regular video, not StageVideo.
How can installed Adobe flash player 10.1 on Android simulator 2.2?
Hi sujay1407 until now thats not possible, I asked directly to a google engineer, necessarily needed an android device with hardware and software required for Flash Player 10.1
http://www.adobe.com/devnet/devices/articles/content_mobilization_faq.html#q07
Here you can download APKs for various versions of Android. They also install properly on the emulator, however I don't know if they actually are able to run.
http://helpx.adobe.com/flash-player/kb/archived-flash-player-versions.html
edit: nope, it installs but does not seem to work. I've just tested http://www.adobe.com/swf/software/flash/about/flashAbout_info_small.swf on emulator and empty black page showed up.