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

iOS: Ti.UI.VideoPlayer ignores changes to the "scalingMode" property

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 7.3.0
    • Component/s: iOS
    • Labels:
    • Environment:

      iOS 11
      Titanium SDK 7.1.0
      Alloy 1.10.10

      Description

      When I try to change the property "scalingMode" of Ti.UI.VideoPlayer, the player ignores any constant and defaults to Ti.Media.VIDEO_SCALING_RESIZE ("AVLayerVideoGravityResize").
      This happens both at creation time and at runtime.

      Test case:

      index.js

      $.index.open();
      

      index.xml

      <Alloy>
      	<Window class="container">
      		<VideoPlayer class="video" />
      	</Window>
      </Alloy>
      

      index.tss

      ".container": {
      	backgroundColor:"#333"
      }
      ".video": {
      	width: 200,
      	height: 300,
      	scalingMode: Ti.Media.VIDEO_SCALING_RESIZE_ASPECT_FILL,
      	url: 'http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4',
      }
      

      Expected result: the video is cropped to fill the defined size, keeping the aspect ratio.
      Actual result: the video is resized and stretched to fill the defined size.

        Attachments

          Activity

            People

            • Assignee:
              hknoechel Hans Knöchel
              Reporter:
              ajonus Andrea Jonus
              Reviewer:
              Eric Wieber
              Tester:
              Samir Mohammed
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code