{ "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

\n

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
\n

Tested on iPhone Simulator 4.2
\nTi SDK 1.6 (Feb 3 2011 22:28 r0f017b3a)

{html}", "attachment": [], "flagged": false, "summary": "iOS app crashes when video is finished if playbackState listener is attached", "creator": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "129949", "author": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "body": "{html}

One of our customers is having this issue as well.

\n

Here's the stack trace - http://pastie.org/1674175

\n

Here's the same issue reported on the Q/A forum - \nhttp://developer.appcelerator.com/question/97821/app-crashes-on-pla...

{html}", "updateAuthor": { "name": "rblalock", "key": "rblalock", "displayName": "Rick Blalock", "active": false, "timeZone": "America/Havana" }, "created": "2011-04-15T03:35:40.000+0000", "updated": "2011-04-15T03:35:40.000+0000" }, { "id": "129950", "author": { "name": "kael", "key": "kael", "displayName": "Kael", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

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

}

\n

Now, please, can you fix this bug \nhttps://appcelerator.lighthouseapp.com/projects/32238/tickets/971-i...\n.

\n

Please, It is a very serious bug. Each Titanium mobile\napplications using video (including KS) have this bug! Please..

\n

Should I open a new ticket?

{html}", "updateAuthor": { "name": "kael", "key": "kael", "displayName": "Kael", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:35:41.000+0000", "updated": "2011-04-15T03:35:41.000+0000" }, { "id": "129951", "author": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Stephen, this has become a high priority item for one of our\ncustomers. Assigning to you for immediate evaluation and\nresolution.

{html}", "updateAuthor": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:35:42.000+0000", "updated": "2011-04-15T03:35:42.000+0000" }, { "id": "129952", "author": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

(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...

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:35:43.000+0000", "updated": "2011-04-15T03:35:43.000+0000" }, { "id": "129953", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

TESTING

\n

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.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:35:43.000+0000", "updated": "2011-04-15T03:35:43.000+0000" }, { "id": "129954", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

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

{html}", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:35:43.000+0000", "updated": "2011-04-15T03:35:43.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }