{ "id": "82815", "key": "TIMOB-6210", "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": "12086", "description": "", "name": "Sprint 2011-46", "archived": true, "released": true, "releaseDate": "2011-11-21" }, { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-01-05T13:31:34.000+0000", "created": "2011-11-16T21:16:50.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "module_media", "qe-testadded" ], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "issuelinks": [ { "id": "14863", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "85692", "key": "TIMOB-7466", "fields": { "summary": "Android: Titanium.Media.VideoPlayer: video doesn't show paused image when player paused and brought from foreground in 2.2 and 2.3", "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" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2012-01-30T10:21:53.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "Reproduce:\r\n\r\n* Create an app with the app.js from below.\r\n* Start the app.\r\n* When you see \"video ready\", tap the window to show the controls (if they're not showing) and press play.\r\n* Play the video for a few seconds, then pause it.\r\n* Hit your home button to background the app.\r\n* Go back to the app and wait a few seconds. It will start playing again.\r\n\r\nExpected Behavior:\r\n\r\nWhen coming back to the app, the video should just load and then \"seek\" to the last played location, but not actually start playing.\r\n\r\n{code:title=app.js}\r\n/*global Ti, Titanium, alert, JSON, require, setTimeout, setInterval */\r\nTitanium.UI.setBackgroundColor('#000');\r\nvar win = Titanium.UI.createWindow({ \r\n title:'Test',\r\n backgroundColor:'green',\r\n\texitOnClose: true\r\n});\r\n\r\nvar vp, lbl;\r\n\r\nwin.add( vp = Ti.Media.createVideoPlayer({\r\n\turl:'http://dts.podtrac.com/redirect.mp4/twit.cachefly.net/video/aaa/aaa0033/aaa0033_h264b_640x368_256.mp4',\r\n\tmovieControlMode: Titanium.Media.VIDEO_CONTROL_EMBEDDED,\r\n\tscalingMode:Titanium.Media.VIDEO_SCALING_MODE_FILL,\r\n\tautoplay:false,\r\n\ttop:0,\r\n\tbottom: \"200dp\",\r\n\tleft: \"50dp\", right: \"50dp\",\r\n\tbackgroundColor: \"blue\"\r\n}));\r\n\r\nwin.add( lbl = Ti.UI.createLabel({\r\n\ttext: \"wait...\",\r\n\tbottom: \"10dp\",\r\n\theight: \"auto\",\r\n\tleft: 0, right: 0,\r\n\ttextAlign: \"center\",\r\n\tcolor: \"white\",\r\n\tbackgroundColor: \"black\",\r\n\tfont: {fontSize: 25}\r\n}));\r\n\r\nvp.addEventListener(\"loadstate\", function(e) {\r\n\tif (e.loadState === Ti.Media.VIDEO_LOAD_STATE_PLAYABLE) {\r\n\t\tlbl.text = \"video ready\";\r\n\t}\r\n});\r\nvp.addEventListener(\"playbackState\", function() {lbl.text = \"\";});\r\n\r\nvar resumeCount = 0;\r\n\t\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Video Player view plays video when app comes to foreground from background, even if it was paused when backgrounded", "creator": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Titanium 1.8.0.1 6f392cdd0, any device", "comment": { "comments": [ { "id": "173042", "author": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "body": "Pull request ready.\r\n\r\nhttps://github.com/appcelerator/titanium_mobile/pull/724", "updateAuthor": { "name": "billdawson", "key": "billdawson", "displayName": "Bill Dawson", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-11-16T22:50:07.000+0000", "updated": "2011-11-16T22:50:07.000+0000" }, { "id": "175130", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Bug fixed. Verified on:\r\nSDK: 1.8.0.1.v20111206154658\r\nRuntimes: Android V8/Rhino\r\nStudio: 1.0.7.201112052104\r\nOS: OS X Lion\r\nDevices Tested: Nexus One 2.2.2, Droid3 2.3.4, G-Slate 3.1, Emulator 4.0", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-06T18:12:30.000+0000", "updated": "2011-12-06T18:12:30.000+0000" }, { "id": "178161", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening for label updates", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-05T11:16:28.000+0000", "updated": "2012-01-05T11:16:28.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }