{ "id": "61956", "key": "TIMOB-1324", "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": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:55:52.000+0000", "created": "2011-04-15T02:49:26.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "enhancement", "ios", "iphone", "pause", "player", "video" ], "versions": [], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:55:52.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}

I believe we need to add a pause method to the video player. I\nhave seen a few requests for this in the help desk.

{html}", "attachment": [], "flagged": false, "summary": "iPhone Video Player enhancement", "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": "125342", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Which version of iPhone OS are they using? We do support pause\nin 3.2 and later, because the iPhone OS in 3.2 and later supports\npause. In 3.1, however, the underlying MPMoviePlayerController does\nnot have a pause method.

{html}", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:49:26.000+0000", "updated": "2011-04-15T02:49:26.000+0000" }, { "id": "125343", "author": { "name": "ctredway1", "key": "ctredway1", "displayName": "ctredway", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Since our docs nor the kitchen sink have the syntax for this,\nhow do we use it?

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

pause().

\n

I have updated the documentation.

{html}", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:49:26.000+0000", "updated": "2011-04-15T02:49:26.000+0000" }, { "id": "125345", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "{html}

Although the video player has it's own button built in, I tested\nthe following code and the pause() works fine.

\n
\nvar win = Ti.UI.createWindow();\nvar activeMovie = Titanium.Media.createVideoPlayer({\n    contentURL:'movie.mp4'\n});\nwin.add(activeMovie);\nvar button1 = Ti.UI.createButton({title:'play'});\nvar button2 = Ti.UI.createButton({title:'pause'});\nvar button3 = Ti.UI.createButton({title:'stop'});\nwin.setToolbar([button1,button2,button3]);\nwin.open({modal:true});\n\n//play button click\nbutton1.addEventListener('click',function(){\n    activeMovie.play();\n});\n//pause button click\nbutton2.addEventListener('click',function(){\n    activeMovie.pause();\n});\n//stop button click\nbutton3.addEventListener('click',function(){\n    activeMovie.stop();\n});\n
\n

resolved

{html}", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:49:27.000+0000", "updated": "2011-04-15T02:49:27.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }