Android :: WebView And HTML5 - Video
Sep 28, 2010
I'm piecing together a cheapo app that amongst other things "frames" some of our websites... Pretty simple with the WebViewClient... until I hit the video.
The video is done as HTML5 elements, and these work fine and dandy on Chrome, iPhones, and now that we fixed the encoding issues it works great on Android... in the native browser.
Now the rub: WebView doesn't like it. At all. I can click on the poster image, and nothing happens.
Googling, I found http://www.codelark.com/2010/05/12/android-viewing-video-from-embedded-webview/ which is close, but seems to be based on a 'link' (as in a href...) instead of a video element. (onDownloadListener does not appear to get invoked on video elements...)
I also see references to overriding onShowCustomView, but that seems to not get called on video elements... nor does shouldOverrideUrlLoading..
I would rather not get into "pull xml from the server, reformat it in the app".. by keeping the story layout on the server, I can control the content a bit better without forcing people to keep updating an app. So if I can convince WebView to handle tags like the native browser, that would be best.
View 3 Replies
Oct 9, 2009
I am experimenting with Androids WebView[1] and its HTML5 features. I have written a little webpage with does the features detection like described here: http://diveintohtml5.org/detect.html
And now I see (I am on a SDK1.6 Emulator) that the LocalStorage, the WebWorkers and Offline Web Applications are not supported!
Does anyone know when these features will be supported? Or does anyone know the exact version (or build) of the webkit engine, that is used in Android 1.6?
View 9 Replies
View Related
Oct 6, 2010
I wrote several simple HTML5 apps which all works on Android browser, but the webview in my activity doesn't work. I have enable javascript in webview setting. Is there anything setting needed for HTML5 to work?
View 3 Replies
View Related
Dec 2, 2009
Anybody have a working example of HTML5 file with a video tag ? [working in chrome lite] What resolution and format is supported ?
View 3 Replies
View Related
Apr 6, 2010
I'm trying to get an html5 demo page working on Android 2.1, have tried both droid and nexus one with 2.1 but they only display the poster image, and do not play the video. Pressing on the video does not do anything. Resolved with the onclick handler on the video tag. Is it possible to use html5 video in the android 2.1 browser at this time? My demo page is working for both the iphone and the ipad.
The mp4 video: avc1, 29.97 fps, 380 kbps, 480 x 370
Audio: mp4a, 44 kHz, 64 kbps
Here's how the page is written:
<!DOCTYPE html>
<html><head><title>html5 test</title></head><body>
<video id="movie" width="480" height="370" poster="http://example.com/still.jpg" controls>
<source src="http://example.com/video.mp4" type="video/mp4">
Your browser does not support html5 video.
</video>
</body></html>
View 2 Replies
View Related
May 30, 2014
I'm using the Note2 with the TW-based Digiblur rom and am having trouble when playing HTML5 player videos in the stock web browser. Any time a video plays, instead of timing out like they are supposed to, the navigation softkeys on the device stay lit while the video is playing. If I pause or stop the video, everything goes back to normal and the keys time out like they are supposed to. The problem is not present in any video player application, including the stock YouTube client.
View 3 Replies
View Related
Feb 18, 2010
In my android app I have a WebView to display HTML data from our website. Sometimes the page will have youtube embed objects. This doesn't show up properly in the app. Is there any way to show/play youtube videos in WebView ?
View 4 Replies
View Related
Jun 23, 2013
I am building a simple webview application which is now displaying a website filled with short video clips, using the HTML5 video player. Everything runs ok in the default android web browser but webview wont't play any of the video clips.
Html code used to play the video clips:
[HIGH]
<video poster preload="true" controls autoplay with="500" height="200">
<source src= [URL]... type="video/mp4">
</video>[/HIGH]
Main Activity.java :
[HIGH]package tscolari.mobile_sample;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
[Code]...
How could I enable video playback inside webview?
View 2 Replies
View Related
Mar 20, 2009
Does android webkit support html5 currently or in cupcake branch? I am particularly interested in the <audio> tag.
View 2 Replies
View Related
Nov 6, 2010
I have tried to implement HTML5 in Android OS. But i didnt get it....Can anyone give example HTML 5 in Android?
View 2 Replies
View Related
Nov 24, 2010
Does anyone know if there will be support for applications like that you download from the market to be written in canvas+javascript?
I know currently there is html5 and canvas support for the android browser but I am looking more for a solution for full screen games and such.
View 1 Replies
View Related
Feb 25, 2010
The HTML5 applicationCache in the 2.x browser is working well except for one problem:
when you force a cache update in JavaScript (window.applicationCache.update()) then it doesn't go out to the web to check the manifest it just throws the "checking" and then the "noupdate" events.
I imagine that eventually it actually checks the manifest online, but the update() is supposed to force it. any ideas on how to force an update or how old the manifest needs to be before it checks the web again?
View 2 Replies
View Related
Mar 11, 2010
I'm trying to use the HTML5 Geolocation features found in Android 2.0. However, it does not work in the browser or a WebView. I've tested in the emulator and on multiple devices. The code I have works in multiple other browsers that support the spec. Has anyone gotten this to work?
View 2 Replies
View Related
Feb 23, 2013
I am trying to make an app base on HTML and java actually I have this mobile site and contents are mostly text and 2 java picture galleries, and I need to run it as a native app. Is it possible to make mobnile website in other tools and somehow import them manually to Eclipse to get the app built? Because when I use new-->android application, the projects have only XML files and I am not familiar with xml.
View 9 Replies
View Related
Sep 17, 2012
How to get the html5 control id in android application.
View 1 Replies
View Related
Oct 14, 2010
Is there any list which HTML5 features the WebView supports and which not? I am interested mainly in: 1) localStorage/sessionStorage 2) offline manifest 3) web sockets 4) web workers. Prior there was lack of those features (http://www.mail-archive.com/android-developers@googlegroups.com/msg60143.html), but in Android 2.1, first two should be supported, but I am not sure about 3 and 4. Is there any list of supported features or we have to test it on our own?
View 1 Replies
View Related
Jun 18, 2010
I have a javascript that plays audio in the browser, using the html5 <audio> tag. It works fine in the iPhone browser, but not in Android. (Testing using a htc desire with android 2.1.) Anyone know why?By the way, I am also trying to enlarge the audio button that shows up in the iphone (the default one is quite small), with no luck so far - would be grateful for any ideas!
View 3 Replies
View Related
Jul 22, 2009
What is the schedule for HTML5 support in WebKit? Specifically - offline web applications and storage.
View 2 Replies
View Related
Aug 11, 2010
As a webapp, not a native app on the iPhone or Andriod. Is it possible to draw with your finger? If so, how?Anyone have or can provide a barebone simple example that just loads a blank page?
View 2 Replies
View Related
Jun 7, 2010
if this is a noob question, I searched quite a bit and couldn't find an answer. I'm developing a html5 app that relies on sqlite for local storage.I'd like for it to appear as an app icon on the iPhone/Android screen, what's the best way to do this? Ie can I write some sort of "wrapper" app to achieve it?
View 4 Replies
View Related
Jun 13, 2010
I am looking for resources to develop HTML5 apps for iphone primarily. Are their frameworks and tools that I can use to get started? I am looking for: Javascript frameworks that help with UI layout Touch based controls for phones Articles on iphone development, best practices, etc.I searched stackoverflow and was not able to come up with a good list of resources. I am looking for examples like these http://jqtouch.com/
View 4 Replies
View Related
Nov 24, 2010
I've talked to a lot of people recently who say they are expecting to stop writing native mobile apps and start writing web apps once HTML5 gets more fully baked in mobile OSs. I just finished my first HTML5 deep dive, and I'm not yet convinced.
Will HTML5 work as a replacement development platform for native apps, or are there certain things that require targeting the native runtime?
View 5 Replies
View Related
May 14, 2010
I recently tried out the applicationCache / offline web apps on Android 2.1's WebKit and unfortunately it does not work exactly like on a webkit on the iPhone. I was wondering how I can easily see what features should be implemented and if there is something like a roadmap?
Does that information somewhere exist?
View 1 Replies
View Related
Nov 18, 2010
I would like an html5 page that runs in Android 2.2 Browser that I can take a picture using the phone's built-in camera and save it to a sqlite database as a blob.
View 2 Replies
View Related
Jan 21, 2013
my application, flash embedded in android does not function.
View 1 Replies
View Related
Apr 21, 2010
I am trying to use gwt-mobile-webkit, particularly its location api. It works well with iPhone (both device and simulator) and Firefox and on G1 with 1.6 Android, however, it does not work on G2 with Android 1.5 on it. In result I am getting onFailure callback with Permission Denied error.
So it seems, that there is some geolocation API (gears or HTML5) in the browser available, but it just does not want to ask user for granting permissions. Do you know if there is any workaround or just enable it somewhere in settings?
View 2 Replies
View Related
Sep 14, 2013
I entered the Android world with a Nexus 7 (2012) edition recently.
I create some webpages which I want to make sure that it works in HTML5 browsers. The way I go about the testing is, I first create the webpages in my laptop, copy the folder to my Nexus 7, and open the index.html in the browser.
Now, I heard that Google Chrome is a HTML5 browser. But I am unable to open my html file in that when I open it from File Manager. I tried Dolphin Browser, but it crashes the moment it opens.
So, is there any other HTML5-only browser I can use for this purpose?
View 5 Replies
View Related
Jun 6, 2012
I have created an HTML5 'app' with a width and height 480 x 800 to be used as an android app.
Plan is that this can be scaled down/up for other Android devices to fit screen.
The app runs fine, but it is not being scaled to my device screen size. I have to scroll up/down and left/right on the every screen.
I have tried nearly every variation of the meta viewport tag with no succes (in the index.html file).
View 1 Replies
View Related
Mar 13, 2014
I'm working on a mobile web application and all phones don't casue any trouble with the soft keyboard and input fields, but Android does (tested on a HTC One).
Here's the problem:I've got a log in page with a log in form. When and input is selected, the soft keyboard appears. The soft keyboard kicks some elements up, which causes the lay out of the page to break. On iOS and Windows Phone, the soft keyboard kicks the whole page, so basically the DOM or body up to make room for the soft keyboard. The Android browser, however, lets the body stay where it is and only kicks some elements up, which causes the lay out to break.
Normal page:
When input is selected:
What the desired effect is (achieved on iOS and Windows Phone):
I haven't used any position fixed, only absolute on the page wrapper, header and header logo.
View 2 Replies
View Related
Feb 29, 2012
i usually use Opera but its not working on the current ICS rom I'm using on my G2x, so in every ones eyes what's the best browser that supports Flash and HTML5 in your opinion and why, the current stock browser isn't cutting it for me.
View 4 Replies
View Related