[TIMOB-816] Video Player crashes in iPad when fullscreen event is caught
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-08-02T18:11:22.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS |
Labels | ios, ipad, mobilesdk, movieplayer |
Reporter | Nick Wing |
Assignee | Reggie Seagraves |
Created | 2011-04-15T02:37:05.000+0000 |
Updated | 2011-08-02T18:11:22.000+0000 |
Description
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.
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();
Here is the error message that pops up:
[ERROR] The application has crashed with an unhandled exception. Stack trace:
0 CoreFoundation 0x0369c24b _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 nsnote_callback + 106
7 CoreFoundation 0x03644d05 CFXNotificationPostNotification + 453
8 Foundation 0x0042ef00 -[NSNotificationCenter postNotificationName:object:userInfo:] + 128
9 MediaPlayer 0x02a6d566 -[MPMoviePlayerControllerNew videoControllerWillEnterFullscreen:] + 233
10 MediaPlayer 0x02ad7b7d -[MPInlineVideoViewController transitionToFullscreenAnimated:] + 167
11 MediaPlayer 0x02ad73a6 -[MPInlineVideoViewController transportControls:tappedButtonPart:] + 413
12 MediaPlayer 0x02aa3373 -[MPTransportControls handleTapForPart:] + 118
13 UIKit 0x006b9bc6 -[UIApplication sendAction:to:from:forEvent:] + 119
14 UIKit 0x0072c8d5 -[UIControl sendAction:to:forEvent:] + 67
15 UIKit 0x0072eb0f -[UIControl(Internal) sendActionsForEvents:withEvent:] + 478
16 UIKit 0x0072d842 -[UIControl touchesEnded:withEvent:] + 442
17 UIKit 0x006d7d68 -[UIWindow sendTouchesForEvent:] + 507
18 UIKit 0x006be1ed -[UIApplication sendEvent:] + 403
19 UIKit 0x006c5c47 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] Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: ' -[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
)
Bug Scrub: Invalid/Fixed. No Test Case exists. Used provided code. Tested On: Mac OSX Lion TiMob Version: 1.7.2 TiStud Version: 1.0.2 Devices used: iPhone 4.3.4