{ "id": "62357", "key": "TIMOB-1725", "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": "11225", "name": "Release 1.5.0", "archived": true, "released": true, "releaseDate": "2010-12-14" } ], "resolution": { "id": "6", "description": "", "name": "Hold" }, "resolutiondate": "2011-04-15T03:00:37.000+0000", "created": "2011-04-15T03:00:33.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "apple", "bug", "ios", "ipad", "player", "rplist", "video", "window" ], "versions": [], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-03T17:17:09.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}

Running 1.4 and 1.4.1 on iOS 3.2 when a window is closed that\nhas a video player instance in it, the video player is not removed\nas well. I tried using a window.remove(videoPlayer) and that did\nnot work either.

{html}", "attachment": [], "flagged": false, "summary": "iPad Video player does not remove when window is closed.", "creator": { "name": "ctredway1", "key": "ctredway1", "displayName": "ctredway", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ctredway1", "key": "ctredway1", "displayName": "ctredway", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "126458", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

No views are detached when a window is closed. What's the point\nof removing the video player? If it's to stop it, then the player\ncan simply be stopped manually through an event listener.

\n

If it has to do with memory issues, this could possibly be fixed\nby better view memory management, which may be part of Blain's\nongoing view refactor.

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

(from [4ec97cd3307b066fbf464300337d89e89b70a6b4])\n[#1725 state:fixed-in-qa] Added flag to determine\nwhether or not movies are 'really' attached to a view. \nhttp://github.com/appcelerator/titanium_mobile/commit/4ec97cd3307b0...

{html}", "updateAuthor": { "name": "jhaynie", "key": "jhaynie", "displayName": "Jeff Haynie", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:00:34.000+0000", "updated": "2011-04-15T03:00:34.000+0000" }, { "id": "126460", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

test file exists in bug tests.
\nTested in iPad Simulator 3.2, 4.0, 4.1, and 4.2
\nSDK 1.5 12/9/2010 - r43358e5f

\n

When window is opened, the video starts playing, then:

\n

iOS 4.0, 4.1, and 4.2
\nWhen window is closed, video stops playing as expected.

\n

iOS 3.2
\nWhen window is closed, video keeps playing in the background.

{html}", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:00:35.000+0000", "updated": "2011-04-15T03:00:35.000+0000" }, { "id": "126461", "author": { "name": "rpfeiffer", "key": "rpfeiffer", "displayName": "Ralf Pfeiffer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Steve, please describe the problem, root cause and fix. I prefer\nnot to add to R1.5 if there is a workaround.

\n

Categorizing as needs more info and TBS, and low.

{html}", "updateAuthor": { "name": "rpfeiffer", "key": "rpfeiffer", "displayName": "Ralf Pfeiffer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:00:35.000+0000", "updated": "2011-04-15T03:00:35.000+0000" }, { "id": "126462", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Going to mark this as \"resolved\" as it's resolved for 4.0+\ndevices.

\n

In 3.2, it appears that this is an apple bug (able to recreate\noutside of Titanium, and so was Blain). Unfortunately there is no\nworkaround because this is caused entirely by the\nMPMoviePlayerController internals - we can't intervene at any point\nwithout the possibility of introducing private APIs and thus\npossible app rejection.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:00:36.000+0000", "updated": "2011-04-15T03:00:36.000+0000" }, { "id": "126463", "author": { "name": "ctredway1", "key": "ctredway1", "displayName": "ctredway", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Ok, this is back on iOS 4+. If the fullscreen flag is set to\ntrue, the video player will not remove from view and the window its\nin will not close either. If the fullscreen flag is not used or\nfalse (which is the default), and the controls are set to\nfullscreen, it will behave the way it should.

{html}", "updateAuthor": { "name": "ctredway1", "key": "ctredway1", "displayName": "ctredway", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:00:36.000+0000", "updated": "2011-04-15T03:00:36.000+0000" }, { "id": "126464", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Not a regression. Was caused by erroneously listening for\n\"complete\" on the click of the fullscreen \"Done\" button. Making\nresolved. FROM APPLE'S DOCUMENTATION:

\n
\n

This notification [MPMoviePlayerPlaybackDidFinishNotification]\nis not sent in cases where the movie player is displaying in\nfullscreen mode and the user taps the Done button. In that\ninstance, the Done button causes movie playback to pause while the\nplayer transitions out of fullscreen mode. If you want to detect\nthis scenario in your code, you should monitor other notifications\nsuch as MPMoviePlayerDidExitFullscreenNotification.

\n
\n

These notifications trigger \"complete\" and \"fullscreen\"\nrespectively.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:00:36.000+0000", "updated": "2011-04-15T03:00:36.000+0000" }, { "id": "126465", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Clint is able to continuously reproduce, although I'm not. Very\nstrange. Marking needs-more-info as a result.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:00:37.000+0000", "updated": "2011-04-15T03:00:37.000+0000" }, { "id": "126466", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Turns out this is also an apple bug - sometimes the\nnotification/event IS fired, but only when the control style is\nFULLSCREEN (whether or not the movie is fullscreen is irrelevant).\nThat doesn't match documentation. Also, the close() issue has to do\nwith not allowing the close of toplevel tab windows (which is\nperfectly OK).

\n

It's worth noting that this bug also prevents us from being able\nto remove the movie control overlay from a window if necessary; all\nother control schemes allow us to remove a movie from a view.\nFullscreen controls do not.

\n

Radar Bug ID# 8785759

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:00:37.000+0000", "updated": "2011-04-15T03:00:37.000+0000" }, { "id": "408864", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket due to time passed and irrelevance of ticket.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-03T17:17:09.000+0000", "updated": "2017-03-03T17:17:09.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }