Shows Homepage with videos, video stays black only sound.
var homepage = Titanium.UI.createWebView(
{
url: '
http://sportclipone.at/',
borderRadius: 1,
modal:false,
enableZoomControls: false,
scalesPageToFit: false,
scrollsToTop: false,
showScrollbars: false
});
if (isAndroid)
{
homepage.pluginState = Titanium.UI.Android.WEBVIEW_PLUGINS_ON;
}
else
{
homepage.borderRadius = 0.9;
}
homepage.width = Ti.UI.FILL;
homepage.height = Ti.UI.FILL;
var win1 = Titanium.UI.createWindow(
{
title: 'Homepage',
backgroundColor: '#ffffff',
layout: 'vertical'
});
win1.add(homepage);
win1.open();
[WARN] : I/TiWebChromeClient.console(30462): (main) [15888,17877] Failed to execute 'play' on 'HTMLMediaElement': API can only be initiated by a user gesture. (16:
http://sportclipone.at//plugins/hwdmediashare/player_mejs/assets/mediaelement-and-player.min.js)
[WARN] : I/TiWebChromeClient.console(30462): (main) [968,18845] Uncaught (in promise) NotAllowedError: play() can only be initiated by a user gesture. (16:
http://sportclipone.at//plugins/hwdmediashare/player_mejs/assets/mediaelement-and-player.min.js)
[WARN] : E/OMX-VDEC-1080P( 189): Extension: OMX.google.android.index.storeMetaDataInBuffers not implemented
Hello, I am trying to test the issue in Android 6.0.1. I need the username and pass to access the webpage video contents. Please send the credentials for us to test. We will let you know and possibly provide a fix for you. But we need to test and regenerate the issue for farther investigation. Thanks.
Login -> Mail
Hello, The username and password is not correct. Please send the real credencials. Thanks.
Site is (since yesterday) usable without username and password
did you got access?
One interesting thing: Using SDK 6.0.0.v20151228134127 ist writing: INFO] : OMXClient: Using client-side OMX mux. and WORKS!
Hi, I have tested this with different video url and latest SDK. I am able to reproduce the issue.The wedpage video stays black. !0-ea-d3-5844f8298ae289c6072474c78f707c05.jpg|thumbnail! *Test Code*
*Environment*
You can also reproduce it with a small test project: Appcelerator Studio -> New project -> HTML based Application and change the source of the webview to http://sportclipone.at or cnn.com Video starts black only, no sound. There are no changes with android flags (hardware_acceleration true/false, ...)
This doesn't seem to be a regression. Able to reproduce it all the way back to to 5.1.0.GA.
[~FritzZetik] Just want to know, what's the objective of running a video from a Webview. Would using the [VideoPlayer](http://docs.appcelerator.com/platform/latest/#!/api/Titanium.Media.VideoPlayer) be a possible alternative for you?
There are some more information on the page. If we had to use the video player we would need to interprete any information on the site and rebuild it in the app (likes, shares, sponsorlogos, texts aso.) If there is a possability to open the videoplayer on touch or starting the video it could be a solutution.
But can you explain to me the problem on android?
Hi I can jump in here too I am experiencing this issue with an app we are developing. I can say that using SDK 5.3.1.GA we do not see this issue. When we upgraded to 5.5.0.GA we are now seeing the issue. So I tested with 5.4.0.GA and the issue is there, too. And when I tried to build with 5.3.1.GA again, we were no longer seeing the issue. So in summary, we do not experience the issue with SDK 5.3.1. We start seeing the issue with 5.4.0 and it persists into 5.5.0. Interestingly when we go full screen with a video, the picture now appears. Presumably this is because when you fullscreen a video it launches the native full screen which breaks out of the webview. So it appears to be strictly a webview issue.
Is there a chance to get it fixed in on time or is it a "big" bug? When I asked the support via email, there is no answer at all. The only thing is: Our Team is currently working on that issue. Sorry, but this is a blocker for our project. And as I see, there is no Estimation, no story, no session assigned. And I can't tell my customer: It will be solved on Thursday .... He asks: which Thursday ? and I can't give him any clue or deadline
Have you tried to build with an older version of the SDK? This bug would be a blocker for us as well, but we are able to work-around it by building with SDK 5.3.1.GA...
my problem is, i need videos from the camera on android and ios and there is a problem with android 6.0 so we switched to the new code and this worked. so i would need the camera code from 5.5.0 and the web view from 5.3.1 :(
5.5.1 GA -> Problem persists. [INFO] : WebViewFactory: Loading com.google.android.webview version 54.0.2840.42 (code 284004200) [INFO] : art: Rejecting re-init on previously-failed class java.lang.Class
master: https://github.com/appcelerator/titanium_mobile/pull/8587
I've also had numerous issues with webviews on android on anything newer that 5.3.1. I've had to leave my android builds on this version of the SDK as a work around but this is less than ideal when 5.5.1 is needed for iOS 10 compatibility. It means switching SDK versions when compiling for different platforms. Everything points to a commit where for some reason webviews were changed to disable hardware acceleration from 5.4+. If at all possible it would be great to get this fix back ported to 5.X version of the SDK. If not at least on a prompt patch release on the 6.X branch.
Verified Fixed was able to view the Video with sound using SDK version 6.1.0.v20161121091240. *Environment*