Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9313] Android: WebView: URL to video doesn't play

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionInvalid
Resolution Date2014-04-08T01:02:41.000+0000
Affected Version/sRelease 1.8.0.1, Release 2.1.0, Release 2.0.1, Release 3.1.0
Fix Version/sRelease 3.3.0
ComponentsAndroid
LabelsSupportTeam, api, exalture
ReporterEduardo Gomez
AssigneeIngo Muschenetz
Created2012-05-30T13:30:29.000+0000
Updated2017-03-29T22:40:36.000+0000

Description

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();

Attachments

FileDateSize
RanchVideo.jpg2012-05-30T13:30:29.000+0000119544
Screenshot_2013-03-15-09-53-01.png2013-03-15T04:27:08.000+0000272974

Comments

  1. Shameer Jan 2013-03-15

    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
  2. Christopher Stevens 2013-07-06

    I can reproduce the same issue in WebView and also by opening a URL:
       Titanium.Platform.openURL('http://www.youtube.com/watch?v=c8vduyyuPL8');
       
    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]
  3. Christopher Stevens 2013-07-06

    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
  4. Sunila 2013-07-30

    Tried with Google Nexus 4.3, I don't see any difference between the webview in the app and in the native browser.
  5. Mostafizur Rahman 2014-02-21

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

    Testing 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.201402061120
  6. Ingo Muschenetz 2014-03-14

    This might be dependent on device codecs. It could be invalid.
  7. Hieu Pham 2014-04-08

    This is dependent on the device's supported video formats. Closing as invalid
  8. Lee Morris 2017-03-29

    Closing ticket as invalid.

JSON Source