Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-9313

Android: WebView: URL to video doesn't play

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Invalid
    • Affects Version/s: Release 1.8.0.1, Release 2.1.0, Release 2.0.1, Release 3.1.0
    • Fix Version/s: Release 3.3.0
    • Component/s: Android
    • Environment:

      Product: Mobile
      Titanium SDK: Mobile 1.8.0.1, 2.0.1, 2.1.0
      Platform OS: Android
      Platform OS Version: 2.3

      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

          Issue Links

            Activity

              People

              • Assignee:
                ingo Ingo Muschenetz
                Reporter:
                egomez Eduardo Gomez (Inactive)
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-13514
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code