Problem
Setting a youtube video to webView URL property isn't reproduced. Instead just slides a list of controls over the top of the initial video image (add to, share, like, dislike).
Steps to reproduce
1. Run actual sample below
2. Click the video
3. Notice slide list of controls over the top
Expected behavior
On a Browser window (Droid OS) put "
http://www.youtube.com/watch?v=c8vduyyuPL8", once the video was completely reproduced the list of controls appears at the top of video image.
Tested on
Droid Razr with Android 2.3.5
Reported also on an HTC Evo with Android 2.3.5
Snippet code
// this sets the background color of the master UIView (when there are no windows/tab groups on it)
Titanium.UI.setBackgroundColor('#000');
var win1 = Titanium.UI.createWindow({
title:'Window',
backgroundColor:'#fff',
fullscreen: true,
navBarHidden: true
});
var webview = Titanium.UI.createWebView({
url: 'http://www.youtube.com/watch?v=c8vduyyuPL8',
touchEnabled: true,
scalesPageToFit:true
});
/*
webview.onCreateWindow = function(e) {
if (!e.isUserGesture) {
return null;
}
var webWin = Ti.UI.createWindow({
fullscreen: false
});
var newWebView = Ti.UI.createWebView();
webWin.add(newWebView);
webWin.open();
return newWebView;
};*/
win1.add(webview);
win1.open();
Properties are shown below the screen(see screen shot "Screenshot_2013-03-15-09-53-01") and it shows before video reproduced.After reproduced only audio can hear but not video .But it works on ios as expected. tested on Titanium Studio, build: 3.0.2.201302191606 Titanium SDK version: 3.1.0 Titanium SDK version: 3.0.2 Device: Samsung galaxy s duos Android version: 4.0.4 Android Emulator: Android SDK version: 2.2 iOS iPhone Simulator: iOS SDK version: 6.0
I can reproduce the same issue in WebView and also by opening a URL:
Titanium Studio, build: 3.1.1.201306112235 Titanium SDK version: 3.1.0.GA Device: Android Droid Razr, 4.1.2 Android Emulator: Google APIs Android 4.1 [armeabi-v7a]
I'm also running into the same issue when making use of VideoPlayer solutions seen here: http://developer.appcelerator.com/question/70481/playing-youtube-using-titaniummediavideoplayer
Tried with Google Nexus 4.3, I don't see any difference between the webview in the app and in the native browser.
I tested this issue with the test code reporter has provided. I was not able to reproduces this issue in latest Ti SDK 3.2.1.GA.
Fixed Version/s
Ti SDK 3.2.1.GATesting Environment:
Titanium SDK: 3.2.0.GA, 3.2.1.GA Titanium CLI: 3.2.0, 3.2.1 Android 4.2.2 Appcelerator Studio, build: 3.2.1.201402061120This might be dependent on device codecs. It could be invalid.
This is dependent on the device's supported video formats. Closing as invalid
Closing ticket as invalid.