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

iOS: Video resize from fullscreen crash

    Details

      Description

      {html}<div><p>If you start a video in fullscreen, and then click done and
      resize the video, the app will often freeze or crash.</p>
      <p>Specifically if the size does not match the video
      resolution.</p>
      <p>Ticket Reference: <a href=
      "http://developer.appcelerator.com/helpdesk/view/66451">http://developer.appcelerator.com/helpdesk/view/66451</a></p>
      <p>Test Code:<br></p>
      <pre>
      <code>
      win = Titanium.UI.createWindow({<br> <br> <br> </code> </pre> <pre> <code><code>title:'Test'</code></code> </pre> <pre> <br> });

      <br>
      var label = Ti.UI.createLabel({ </pre> <pre> <code>top: 30, width:100, height:30, text: 'start video', backgroundColor:'white'</code> </pre> <pre> <br> });
      win.add(label);

      <br>
      label.addEventListener('singletap', function(e){

      </pre>
      <pre>
      <code>activeMovie = Titanium.Media.createVideoPlayer({ width: 640/4, //if the aspect is not video default, then you'll get an exception height: 360/4, //if the aspect is not video default, then you'll get an exception fullscreen: true, //this one must be true, or the video must be resized for the exception autoplay: false, url: 'movie.mp4', backgroundColor:'#000', movieControlMode:Ti.Media.VIDEO_CONTROL_DEFAULT, scalingMode:Ti.Media.VIDEO_SCALING_ASPECT_FIT });
      win.add(activeMovie);

      activeMovie.addEventListener('complete', function(e){
      Ti.API.info('movie finished playing');
      if (activeMovie.playing == true) { Ti.API.info('movie is playing'); activeMovie.stop(); } else { Ti.API.info('movie is stopped'); }
      activeMovie.fullscreen = false;
      win.remove(activeMovie);
      Ti.API.info('movie onComplete finished');
      });

      activeMovie.play();</code>
      </pre>
      <pre>


      <br>
      });

      <br>
      win.open();
      </pre></div>{html}

        Attachments

          Activity

            People

            • Assignee:
              ngupta Neeraj Gupta
              Reporter:
              aleard Alan Leard
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration