{ "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....
\nvar win = Titanium.UI.currentWindow;
\nvar 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});
if (parseFloat(Titanium.Platform.version) >= 3.2)
\n{ win.add(activeMovie);
\n}
var windowClosed = false;
\nactiveMovie.addEventListener('complete',function(e)
\n{ Titanium.UI.createAlertDialog({title:'Movie', message:'click on\ndone?'+e}).show();
\n});
activeMovie.play();
\nwin.addEventListener('close', function()
\n{ if (!windowClosed)
\n{ windowClosed = true;
\nalert(\"Window closed!!\");
\nactiveMovie.stop();
\n} });
I'm also experiencing the same problem.
\nUsed 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.
\nMany thanks
\nCraig
I have same issue too. Is there any solution?
Apple's documentation specifies that the \"done\" button does NOT\ntrigger a completion event on the player:
\n\n\nMPMoviePlayerPlaybackDidFinishNotification ... 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
Listen for 'fullscreen' notification, and check the 'entering'\nproperty of the event.