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

iOS: Video Player - For VIDEO_SCALING_MODE_FILL scaling mode, video does not scale to complete height until the device is rotated.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Won't Fix
    • Affects Version/s: Release 2.1.0
    • Component/s: iOS
    • Environment:

      SDK: 2.1.0.v20120619164153
      Titanium Studio, build: 2.1.0.201206200844
      SDK 3.1.1
      Device: ipad3(v 5.1)
      OS: osx 10.7.3

      Description

      For VIDEO_SCALING_MODE_FILL scaling mode, video does not scale to complete height until the device is rotated.
      This is not regression. This issue occurs since 1.8.2

      Steps to Reproduce:
      1. Create an app using the code below.
      2. Launch application and wait till media controls disappear after a few seconds.

      Actual:
      The video does not scale the complete height of the screen. You can see the background of the screen on the top. But when you rotate the device, that space is occupied by the playing video.

      Expected:
      The video should scale to the complete height when launched. The behavior should be same on device rotation.

       
      Titanium.UI.setBackgroundColor('blue');
      var tabGroup = Titanium.UI.createTabGroup();
       
      var win1 = Titanium.UI.createWindow({  
          title:'Tab 1',
          backgroundColor:'red'
      });
      var tab1 = Titanium.UI.createTab({  
          icon:'KS_nav_views.png',
          title:'Tab 1',
          window:win1
      });
       
      var video = Ti.Media.createVideoPlayer({
      	contentURL: 'movie.mp4',
      	movieControlMode:Titanium.Media.VIDEO_CONTROL_FULLSCREEN,
          scalingMode:Titanium.Media.VIDEO_SCALING_MODE_FILL
      });
       
      win1.add(video);
      video.play();
       
      var win2 = Titanium.UI.createWindow({  
          title:'Tab 2',
          backgroundColor:'#fff'
      });
      var tab2 = Titanium.UI.createTab({  
          icon:'KS_nav_ui.png',
          title:'Tab 2',
          window:win2
      });
       
       
      tabGroup.addTab(tab1);  
      tabGroup.addTab(tab2);  
       
      tabGroup.open();
      
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                srahim Sabil Rahim
                Reporter:
                amittal Anshu Mittal
              • Watchers:
                0 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration