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

Video Player crashes in iPad when fullscreen event is caught

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: iOS

      Description

      {html}<div><p>Here's a quick example app.js. Uncomment the fullscreen line, or
      hit the fullscreen button in the interface, either will crash the
      iPad simulator. SDK 3.2, mobilesdk 1.2.0.<br></p>
      <pre>
      <code class=
      "javascript">var win = Titanium.UI.createWindow({ backgroundColor:'#fff' });
      win.open();
      var mymovie = Ti.Media.createVideoPlayer({
      contentURL: 'http://www.txstate.edu/prospectiveflash/VIDEO/Rising_Stars/ChristinaConlee.m4v',
      backgroundColor:'#111',
      movieControlMode:Ti.Media.VIDEO_CONTROL_FULLSCREEN,
      scalingMode:Ti.Media.VIDEO_SCALING_ASPECT_FIT
      });
      mymovie.addEventListener('fullscreen', function(e) {
      Ti.API.info('nothing special in here');
      });
      win.add(mymovie);
      //mymovie.fullscreen = true;
      mymovie.play();</code>
      </pre>
      Here is the error message that pops up:<br>
      <pre>
      <code>[ERROR] The application has crashed with an unhandled exception. Stack trace:
      0 CoreFoundation 0x0369c24b <em>_raiseError + 299
      1 libobjc.A.dylib 0x9692e509 objc_exception_throw + 56
      2 CoreFoundation 0x0369c01b +[NSException raise:format:arguments:] + 155
      3 CoreFoundation 0x0369bf7a +[NSException raise:format:] + 58
      4 Foundation 0x00427195 -[NSCFDictionary setObject:forKey:] + 293
      5 StupidTest 0x0007a8e2 -[TiMediaVideoPlayerProxy handleFullscreenEnterNotification:] + 176
      6 Foundation 0x00437d1a </em>nsnote_callback + 106
      7 CoreFoundation 0x03644d05 <em>CFXNotificationPostNotification + 453
      8 Foundation 0x0042ef00 -[NSNotificationCenter postNotificationName:object:userInfo:] + 128
      9 MediaPlayer 0x02a6d566 -[MPMoviePlayerControllerNew videoControllerWillEnterFullscreen:] + 233
      10 MediaPlayer 0x02ad7b7d -[MPInlineVideoViewController </em>transitionToFullscreenAnimated:] + 167
      11 MediaPlayer 0x02ad73a6 -[MPInlineVideoViewController transportControls:tappedButtonPart:] + 413
      12 MediaPlayer 0x02aa3373 -[MPTransportControls <em>handleTapForPart:] + 118
      13 UIKit 0x006b9bc6 -[UIApplication sendAction:to:from:forEvent:] + 119
      14 UIKit 0x0072c8d5 -[UIControl sendAction:to:forEvent:] + 67
      15 UIKit 0x0072eb0f -[UIControl(Internal) </em>sendActionsForEvents:withEvent:] + 478
      16 UIKit 0x0072d842 -[UIControl touchesEnded:withEvent:] + 442
      17 UIKit 0x006d7d68 -[UIWindow <em>sendTouchesForEvent:] + 507
      18 UIKit 0x006be1ed -[UIApplication sendEvent:] + 403
      19 UIKit 0x006c5c47 </em>UIApplicationHandleEvent + 7102
      20 GraphicsServices 0x03b1317c PurpleEventCallback + 1578
      21 CoreFoundation 0x0362c03c CFRunLoopRunSpecific + 4076
      22 CoreFoundation 0x0362b048 CFRunLoopRunInMode + 88
      23 GraphicsServices 0x03b1189d GSEventRunModal + 217
      24 GraphicsServices 0x03b11962 GSEventRun + 115
      25 UIKit 0x006c3de1 UIApplicationMain + 1134
      26 StupidTest 0x000031be main + 360
      27 StupidTest 0x0000302a start + 54
      2010-04-26 13:20:30.756 StupidTest[19645:207] <strong><em> Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '</em></strong> -[NSCFDictionary setObject:forKey:]: attempt to insert nil value (key: curve)'
      2010-04-26 13:20:30.757 StupidTest[19645:207] Stack: (
      57262667,
      2526209289,
      57262107,
      57261946,
      4354453,
      501986,
      4422938,
      56904965,
      4386560,
      44488038,
      44923773,
      44921766,
      44708723,
      7052230,
      7522517,
      7531279,
      7526466,
      7175528,
      7070189,
      7101511,
      61944188,
      56803388,
      56799304,
      61937821,
      61938018,
      7093729,
      12734,
      12330
      )</code>
      </pre></div>{html}

        Attachments

          Activity

            People

            • Assignee:
              rseagraves Reggie Seagraves
              Reporter:
              nickwing Nick Wing
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code