Android Webview Not Playing HTML5 Videos - java

While HTML5 video works on my Google phones, it no longer works on Samsung devices since I upgraded to api level 26 for my webview project. Whenever I visit YouTube on my webview app, the spinner spins endlessly and says "if playback doesn't begin shortly, try restarting your device". Html5 videos on other websites work, however.
I've tried modfying the WebChromeClient for my WebView, but that did not do anything. Dom storage is enabled as well.

Related

How do I make my iframe code work on any device

I created a football streaming website on wordpress and added an iframe code to play videos using the elementor plugin. I realized it only worked on all devices apart from iphones. Is there solution to this problem?

Is there a way to make webview show flash content?

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.

Webview embed vimeo issue

I used this example to play embed videos from youtube, with youtube it works perfectly. When I try to use it with Vimeo embed video, Play button works like Fullscreen and Play button at the same time.
How can I change code, to make the Play button work correctly?
Currently the Vimeo Player will always go fullscreen on mobile devices - inline playback is not yet enabled.
Vimeo will be enabling inline playback on mobile in the near future, but there's no ETA for that development.

Android WebView javascript support

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".

Does Android Emulator 4.0 supports Webcam

I am learning android on API-8 (Froyo), but the problem is the emulator is also for Froyo which doesn't include the facility of sending email from app or capture a picture from webcam.
I was wondering if I download the emulator for ICS 4.0 in order to run my Froyo apps, will this emulator provides the following features:
Sending email
Supports computer's webcam for capturing pictures
Ok so first of all:
The Android Emulator is always the same for a given SDK version.
It is the system that runs on it that differ.
Android emulator documentation
Then, to send email from the emulator please reffer to How can i configure gmail in Android emulator?
And finally to capture a webcam's video, check:
How to use web camera in android emulator to capture a live image?
http://www.inter-fuser.com/2009/09/live-camera-preview-in-android-emulator.html

Categories

Resources