{ "id": "62881", "key": "TIMOB-2249", "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": "11250", "name": "Sprint 2011-15", "archived": true, "released": true, "releaseDate": "2011-04-18" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-05-11T16:03:56.000+0000", "created": "2011-04-15T03:14:47.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "3.2", "defect", "ios", "ipad", "klist", "player", "release-1.7.0", "video" ], "versions": [], "issuelinks": [], "assignee": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-05-11T16:03:56.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}
When a movie is paused outside the default controls the movie\nwill not play again. Using the default controls still works.
\n\nvar win = Titanium.UI.createWindow({ \n title:'Win'\n});\n \nvar player = Titanium.Media.createVideoPlayer({\n contentURL:'ACCESSO_ANTERIORE_XVID.mp4',\n scalingMode:Titanium.Media.VIDEO_SCALING_MODE_FILL,\n width:400,\n height:300,\n autoplay:false\n});\n \nvar button = Ti.UI.createButton({\n title:'Toggle',\n height:60,\n bottom:120\n});\n \nbutton.addEventListener('click',function()\n{ \n if(player.playbackState==Titanium.Media.VIDEO_PLAYBACK_STATE_PLAYING){\n player.pause();\n }\n else{\n player.play(); \n }\n});\n \nwin.add(player);\nwin.add(button);\nwin.open();
\n
\nhttp://developer.appcelerator.com/helpdesk/view/52221#c238621