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

iOS: Ti.Media.VideoPlayer is crashing when setting showsControls earlier than url property

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 10.0.0
    • Component/s: iOS
    • Labels:
    • Story Points:
      3
    • Sprint:
      2021 Sprint 5, 2021 Sprint 6, 2021 Sprint 7

      Description

      When setting property 'showControl' at creation time of Ti.Media.VideoPlayer and 'url' property later is crashing the app.

      Test Case -

      var basewin = Ti.UI.createWindow({
      	backgroundColor : 'white',
      	layout : 'vertical'
      });
       
      var videoPlayer = Titanium.Media.createVideoPlayer({
          top : 120,
          autoplay : false,
          backgroundColor : 'blue',
          height : 300,
          width : 300,
          mediaControlStyle : Titanium.Media.VIDEO_CONTROL_DEFAULT,
          scalingMode : Titanium.Media.VIDEO_SCALING_ASPECT_FIT,
          showsControls: true,
        //  url: 'https://www.learningcontainer.com/wp-content/uploads/2020/05/sample-mp4-file.mp4' // Setting url at creation time will not crash
      });
       
      videoPlayer.url = 'https://www.learningcontainer.com/wp-content/uploads/2020/05/sample-mp4-file.mp4';
      basewin.add(videoPlayer);
      basewin.open();
      

      Work around -
      Set url property at Ti.Media.VideoPlayer creation time.

        Attachments

          Activity

            People

            • Assignee:
              vijaysingh Vijay Singh
              Reporter:
              vijaysingh Vijay Singh
              Reviewer:
              Christopher Williams
              Tester:
              Samir Mohammed
            • Watchers:
              3 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 Integration