{ "id": "63687", "key": "TIMOB-3055", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" }, { "id": "11246", "name": "Sprint 2011-11", "archived": true, "released": true, "releaseDate": "2011-03-21" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T02:00:47.000+0000", "created": "2011-04-15T03:35:40.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "crash", "ios", "klist", "movieplayer", "playback" ], "versions": [], "issuelinks": [], "assignee": { "name": "rpfeiffer", "key": "rpfeiffer", "displayName": "Ralf Pfeiffer", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T02:00:47.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}
Please use the code provided on HD ticket:
\nhttp://developer.appcelerator.com/helpdesk/view/70041#c335911
If the following lines are removed, not a problem, but with them\non it, the app will crash after the movie is over
\n\nactiveMovie.addEventListener('playbackState',function(e){\n Ti.API.info('Event PlaybackState Fired: '+e.playbackState);\n Ti.API.info('activeMovie.endPlaybackTime: '+activeMovie.endPlaybackTime);\n Ti.API.info('activeMovie.playableDuration: '+activeMovie.playableDuration);\n});
\n
\nTested on iPhone Simulator 4.2
\nTi SDK 1.6 (Feb 3 2011 22:28 r0f017b3a)
One of our customers is having this issue as well.
\nHere's the stack trace - http://pastie.org/1674175
\nHere's the same issue reported on the Q/A forum - \nhttp://developer.appcelerator.com/question/97821/app-crashes-on-pla...
Here a temporary fix that i use:
\n// In TiMediaVideoPlayerProxy.m -(NSNumber*)playbackState {
\n\nONLY_IN_3_2_OR_GREATER(playbackState)\n\nreturn NUMINT([[self player] playbackState]);
\n
\n}
\nNow, please, can you fix this bug \nhttps://appcelerator.lighthouseapp.com/projects/32238/tickets/971-i...\n.
\nPlease, It is a very serious bug. Each Titanium mobile\napplications using video (including KS) have this bug! Please..
\nShould I open a new ticket?
Stephen, this has become a high priority item for one of our\ncustomers. Assigning to you for immediate evaluation and\nresolution.
(from [11e3429788e154201dca79475f4466fce59d8a0d])\n[#3055 state:fixed-in-qa] Actually return a value\nwhen movie==nil for playbackState. \nhttps://github.com/appcelerator/titanium_mobile/commit/11e3429788e1...
KS->Phone->Play Movie->Local has been updated to\ninclude a 'playbackState' listener. If it fires when the movie is\ncomplete, and doesn't cause a crash, this bug is fixed.
Tested with Titanium SDK version: 1.7.0 (03/18/11 12:00 19be393)\non
\niPad2 4.3
\nEmulator 4.0
\nNexus S 2.3.3