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

Android: VideoPlayer: The video control not positioned correctly after orientation change

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Low
    • Resolution: Cannot Reproduce
    • Affects Version/s: Release 2.1.0
    • Fix Version/s: None
    • Component/s: Android
    • Labels:
    • Environment:

      Titanium Studio: 2.1.0.201206172244
      Titanium SDK: 2.1.0.v20120618154152
      Android Device: Android Tab (V3.2), Android 2.2
      Runtime: v8

      Description

      The video control not properly positioned after changing orientation from Landscape to Portrait.

      Not a regression. This issue occurs as far as 1.8.2

      The issue does not seem to occur on Android ICS. Tested with Galaxy Nexus (V4.0.2) on which the issue does not occur.

      Steps to reproduce:
      1. Create an application with code below.
      2. Launch the application with device in landscape mode
      3. While video is playing, tap on the video to see the video control.
      4. While the video control is shown, rotate the device to Portrait orientation

      Actual: The video control is shown positioned in the middle of the screen and is truncated from the right. (Refer to attached screenshot)

      Expected: The video control should be shown at the bottom of the video

      Ti.UI.setBackgroundColor('white');
      var win = Ti.UI.createWindow();
       
      var options = {
      	url: 'movie.mp4',
      	backgroundColor: '#111',
      	scalingMode: Titanium.Media.VIDEO_SCALING_MODE_FILL,
      	movieControlStyle:Titanium.Media.VIDEO_CONTROL_DEFAULT 
      };
       
      var activeMovie = Titanium.Media.createVideoPlayer(options);
      win.add(activeMovie);
       
      activeMovie.play();
       
      win.addEventListener('close', function() {
      	activeMovie.stop();
      });
      win.open();
      

        Attachments

          Activity

            People

            • Assignee:
              emerriman Eric Merriman
              Reporter:
              ssekhri Satyam Sekhri
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code