I have a requirement of render a HTML5 page in my web view. This HTML5 page plays a video with the help of JW Player.
While running, web view can not display that video.
This is the URL of the web page.
http://166.78.178.47:8080/imagedetails?contentId=619&categoryId=
How to display this html5 page in android.
Thanks in advance.
Actually am not sure either of this flash Video playback option. Check out this
JW Player does not support Flash on Android anymore
But am eager to know, did you tried HTML5 Video support option in WebView? It supports MP4/WebM(HTML5 supported videos). Look at this
WebView and HTML5
JW Player does not support Flash on Android anymore, as a response to Adobe also dropping Android Flash support. Only HTML5 (and therefore only MP4/WebM) are supported, as of Android 2.3.
Related
I am using webview to create an Android app that navigates to my website but some of the content of the website is in flash. Is there anyway to make webview show flash videos?
I have tried adding the line myWebView.getSettings().setMediaPlaybackRequiresUserGesture(true); to my MainActivity.java , and adding android:hardwareAccelerated="true" to my AndroidManifest.xml file.
I was expecting to have my app with webview to play flash videos.
Can't be done. Adobe Flash Player hasn't been supported on Android since version 11.1.
I am using Android's built in WebView to show something to the user. I also insert custom javacsript to the page user is is viewing, since it's rather complicated javascript (lets call it userscript, because it acts like you are using for an example Chrome's a userscript on specific page only) Im interested what are the differences in Chromes WebView in different devices?
I guess they are using stock "browser" rendering, but what about javascript support, css3 support etc. on different devices.
Just to be clear.
WebView on Android is actually a version of WebKit customised for the Android platform. It's not a version of Chrome.
Chrome for Android stays up to date as much as possible with desktop chrome.
On iOS I believe the WebView is a single core version of the Safari browser so has some differences.
Chrome for iOS uses this WebView to display web content.
Regarding support best thing to do it look at sites such as http://caniuse.com/
The Android WebView is the same as the "Android Stock Browser" that exists on many Android phones (but is oddly unavailable in Google's Nexus devices). This is true for rendering, JavaScript, etc. When you're looking at a site such as http://caniuse.com, the "Android" column is what you're looking for, not the "Chrome" column.
Unfortunately, testing on Chrome bears almost no relation to using a WebView on Android. Google has stated that they are working on a new WebView component that would be part of Chrome. I asked Google representatives directly when this would be available at PhoneGap Day last month, but all they could say is "it's coming".
I am developing a web application using Java (Servlet, JSP). In a JSP page, I want to show the web camera window to the user. When client clicks a button "Capture", then I should be able to capture the image and store it in some place.
I have done a lot of research, but could not find a satisfactory solution.
That's where the beauty of Applet comes in. Facebook has an Applet that connects to the PC camera and does capturing.
This site provides a good example in JSP:
http://thenerdinme.com/do-it-yourself/how-to-take-screenshots-with-java/
Why do not use something like flex which provides better support for this?
Is it possible to create an Android app for an existing web application which doesn't provide any API?
Webview just provides a crude view of the same web app in Android, but interface with webview looks crappy.
What you're asking is very possible. Just load up your URL in the webview and then redirect all clicks to go back to the same view. There you have an embedded website into an application.
What do you mean by interface for WebView looks crappy? You can make it look like anything native on the phone.
If you want your web page to have the look and feel of a native android app without creating the native app, you'll need to do so using javascript on your served page. Take a look at http://jquerymobile.com/ which seems to do a lot of the leg work. You can use that javascript and a little elbow grease to accomplish what you describe.
How can I get the full path of flash player lite,
and use it to play my target .swf ?
Honestly, I don't know if you can call flash player from outside a browser. What you can do is, create an activity containing a WebView, embed the .swf into a HTML webpage, load that page in the webview, and you should have a working flash thingy. HTML is easy to style using CSS and javascript, in case you want buttons on the same page etc. You won't however be able to achieve a true native look and view. With HTML5 you can get quite close though.
Should you really want that "native" looking application, you can extract the images that android OS uses and style your page to android style. If the version number changes(for example, android uses new native look and feel), your page wont automagically adjust it's style though.
Refer to this link on how to load local html files into a webview.