{ "id": "87291", "key": "TIMOB-7866", "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": "12097", "description": "", "name": "Sprint 2012-05", "archived": true, "released": true, "releaseDate": "2012-03-11" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-03-05T17:37:55.000+0000", "created": "2012-03-02T14:12:51.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_media", "qe-testadded" ], "versions": [ { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" } ], "issuelinks": [], "assignee": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "updated": "2013-12-10T06:08:15.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": "h1. Problem\r\nAs soon as the \"completed\" event fires, the underlying movie player is released and nullified, so the \"stop\" (and other methods, I'm sure) cannot control the video.\r\n\r\nh2. Reproduction\r\nDrop the following in an app.js. Follow the onscreen instructions (1.2.3.):\r\n{code:title=app.js}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor: '#fff'\r\n});\r\n\r\nwin.add(Ti.UI.createLabel({\r\n text: '1. Let movie play through, then 2. press Play again', textAlign: 'center',\r\n color: '#000',\r\n height: 100, top: 0\r\n}));\r\n\r\nvar video = Ti.Media.createVideoPlayer({\r\n contentURL: 'movie.mp4',\r\n backgroundColor: '#111',\r\n movieControlMode: Ti.Media.VIDEO_CONTROL_DEFAULT,\r\n top: 100, bottom: 100,\r\n autoplay: true\r\n});\r\nwin.add(video);\r\n\r\nvar stop = Ti.UI.createButton({\r\n title: '3. Press me to try to stop video',\r\n height: 100, bottom: 0\r\n});\r\nstop.addEventListener('click', function (evt) {\r\n video.stop();\r\n});\r\nwin.add(stop);\r\n\r\nwin.open();\r\n{code}\r\n\r\nh2. Pull request\r\nhttps://github.com/appcelerator/titanium_mobile/pull/1550", "attachment": [], "flagged": false, "summary": "iOS: Movie Player Overreleasing when Movie Stops", "creator": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "dtoth", "key": "dtoth", "displayName": "Dawson Toth", "active": true, "timeZone": "America/New_York" }, "environment": null, "comment": { "comments": [ { "id": "185375", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing issue\r\n\r\nTested with Ti Studio build 1.0.9.201202141208\r\nTi Mob SDK 2.0.0.v20120307090205\r\nOSX Lion 10.7.3\r\n\r\nExpected behavior is shown", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-07T11:21:06.000+0000", "updated": "2012-03-07T11:21:06.000+0000" }, { "id": "283478", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Anvil testcase PR https://github.com/appcelerator/titanium_mobile/pull/5021\n", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-10T06:08:15.000+0000", "updated": "2013-12-10T06:08:15.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }