Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Release 8.0.2
    • Fix Version/s: Release 8.2.0
    • Component/s: iOS
    • Environment:

      Ti SDK 8.0.2.GA

    • Story Points:
      5
    • Sprint:
      2019 Sprint 17, 2019 Sprint 18

      Description

      Since 7.0.0 VideoPlayers property naturalSize and event naturalSizeAvailable of are broken on iOS. They return video layer size instead of "movie" size.

      // URL from https://jira.appcelerator.org/browse/TIMOB-25566
       
      const win = Ti.UI.createWindow({
          backgroundColor: '#fff'
      });
       
      const player = Ti.Media.createVideoPlayer({
          url: 'http://techslides.com/demos/sample-videos/small.mp4', // 560x320
          showsControls: false,
          autoplay: true,
          height: 200
      });
      win.add(player);
       
      function onNaturalSizeAvailable(e) {
          console.log(e.type, 'e.naturalSize', JSON.stringify(e.naturalSize));
          console.log('player.naturalSize', e.source.naturalSize);
      }
      player.addEventListener('naturalsizeavailable', onNaturalSizeAvailable);
       
      win.open();
      

      output (will differ on different devices/simulators):

      {"width": 320, "height": 183}
      

      expected output (must be the same for one video):

      {"width": 560, "height": 320}
      

        Attachments

          Activity

            People

            • Assignee:
              vijaysingh Vijay Singh
              Reporter:
              s.volkov Sergey Volkov
              Reviewer:
              Vijay Singh
              Tester:
              Keerthi Mahalingam (Inactive)
            • Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Source Code