{ "id": "62005", "key": "TIMOB-1373", "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": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2011-04-15T02:50:41.000+0000", "created": "2011-04-15T02:50:39.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "ios", "movie", "movieplayer", "videoplayer" ], "versions": [], "issuelinks": [], "assignee": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T23:16:59.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}

On full screen, the video player used to trigger complete event\nhandler. Now, it does nothing. From the Doc, it says it should\ntrigger the properties \"reason\"- user existed, but it's not.

\n

\nhttp://developer.appcelerator.com/apidoc/mobile/latest/Titanium.Med....

\n

var win = Titanium.UI.currentWindow;

\n

var contentURL = 'http://movies.apple.com/media/us/ipad/2010/tours/apple-ipad-video-u...;
\nif (Ti.Platform.name == 'android') {
\ncontentURL = \"http://c0222252.cdn.cloudfiles.rackspacecloud.com/0032_MotoBlur.m4v\";
\n} var activeMovie = Titanium.Media.createVideoPlayer({
\ncontentURL: contentURL,
\nbackgroundColor:'#111',
\nmovieControlMode:Titanium.Media.VIDEO_CONTROL_DEFAULT,
\nscalingMode:Titanium.Media.VIDEO_SCALING_MODE_FILL
\n});

\n

if (parseFloat(Titanium.Platform.version) >= 3.2)
\n{ win.add(activeMovie);
\n}

\n

var windowClosed = false;

\n

activeMovie.addEventListener('complete',function(e)
\n{ Titanium.UI.createAlertDialog({title:'Movie', message:'click on\ndone?'+e}).show();
\n});

\n

activeMovie.play();

\n

win.addEventListener('close', function()
\n{ if (!windowClosed)
\n{ windowClosed = true;
\nalert(\"Window closed!!\");
\nactiveMovie.stop();
\n} });

{html}", "attachment": [], "flagged": false, "summary": "iOS : videoplayer done button doesn't trigger any eventlistener ", "creator": { "name": "zeroendless", "key": "zeroendless", "displayName": "zeroendless", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "zeroendless", "key": "zeroendless", "displayName": "zeroendless", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "125487", "author": { "name": "craigjones", "key": "craigjones", "displayName": "Craig Jones", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I'm also experiencing the same problem.

\n

Used to work fine in previous version, but since the update the\n'Done' button only pauses the movie and doesn't close the window\nview and return.

\n

Many thanks

\n

Craig

{html}", "updateAuthor": { "name": "craigjones", "key": "craigjones", "displayName": "Craig Jones", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:50:40.000+0000", "updated": "2011-04-15T02:50:40.000+0000" }, { "id": "125488", "author": { "name": "emiralp", "key": "emiralp", "displayName": "Emir Alp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

I have same issue too. Is there any solution?

{html}", "updateAuthor": { "name": "emiralp", "key": "emiralp", "displayName": "Emir Alp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:50:41.000+0000", "updated": "2011-04-15T02:50:41.000+0000" }, { "id": "125489", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Apple's documentation specifies that the \"done\" button does NOT\ntrigger a completion event on the player:

\n
\n

MPMoviePlayerPlaybackDidFinishNotification ... This notification\nis not sent in cases where the movie\nplayer is displaying in fullscreen mode and the user taps the Done\nbutton. In that instance, the Done button causes movie playback to\npause while the player transitions out of fullscreen mode. If you\nwant to detect this scenario in your code, you should monitor other\nnotifications such as\nMPMoviePlayerDidExitFullscreenNotification.

\n
\n

Listen for 'fullscreen' notification, and check the 'entering'\nproperty of the event.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:50:41.000+0000", "updated": "2011-04-15T02:50:41.000+0000" }, { "id": "410966", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T23:16:59.000+0000", "updated": "2017-03-09T23:16:59.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }