{ "id": "142105", "key": "TIMOB-18294", "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": null, "resolutiondate": null, "created": "2014-12-29T06:49:04.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "qe-3.5.0" ], "versions": [ { "id": "16704", "description": "Release 3.5.0", "name": "Release 3.5.0", "archived": false, "released": true, "releaseDate": "2015-01-13" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T19:55:42.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "This is not a regression as the issue happens with older SDK as well (tested as far back as 3.3.0.GA)\r\n\r\nThe initialPlaybackTime property of video player does not work consistently. The issue seems intermittent but for me the scenario created through the code below reproduced the issue almost every time.\r\nThe issue seems to occur only for local video but does work for remote video. The issue does not occur on Android.\r\n\r\nSteps to Reproduce:\r\n1. Create a project with code below and install it on iOS device\r\n2. In the app click on any row in the tableview\r\n3. The video should play in the new window. Check the video time.\r\nNote: When the app did not had a tableview and the video was on the starting window then the issue was intermittent.\r\n\r\nActual Result:\r\nThe video plays from the very start despite of initialPlaybackTime defined as 20 seconds.\r\n\r\nExpected Result:\r\nThe video should start to play from 20 seconds.\r\n\r\n{code}\r\nvar win=Ti.UI.createWindow({\r\n\tbackgroundColor:'white'\r\n});\r\n\r\nvar tableData = [ {title: 'Row 1'}, {title: 'Row 2'} ];\r\nvar table=Ti.UI.createTableView({\r\n\tdata: tableData\r\n});\r\n\r\nwin.add(table);\r\n\r\ntable.addEventListener(\"click\", function(e) {\r\n\tvar win1=Ti.UI.createWindow({\r\n\t\tbackgroundColor:'white'\r\n\t});\r\n\t\r\n\tvar vPlayer = Ti.Media.createVideoPlayer({\r\n\t url: \"AppcDemo.mp4\",\r\n\t initialPlaybackTime: 20000,\r\n\t mediaControlStyle: Ti.Media.VIDEO_CONTROL_DEFAULT,\r\n\t mediaTypes: Titanium.Media.VIDEO_MEDIA_TYPE_VIDEO\r\n\t });\r\n\tvPlayer.addEventListener(\"load\", function(e) {\r\n\t setTimeout(function() {\r\n\t vPlayer.currentPlaybackTime = 193000;\r\n\t }, 15000);\r\n });\r\n win1.add(vPlayer);\r\n win1.open();\r\n});\r\nwin.open();\r\n{code}", "attachment": [ { "id": "53381", "filename": "AppcDemo.mp4", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-12-30T19:44:07.000+0000", "size": 9076420, "mimeType": "video/mp4" } ], "flagged": false, "summary": "iOS: initialPlaybackTime property for video player does not work consistently for local video", "creator": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK: 3.5.0.v20141222103320\r\nStudio: 3.4.1.201410281743\r\nCLI: 3.4.1\r\nAlloy: 1.5.1\r\nDevice: iPad mini3 (v8.1), iPhone4 (v7.1.2)\r\nXcode: 6.1", "comment": { "comments": [ { "id": "337660", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I am able to reproduce the issue as described, using:\r\n\r\nTitanium SDK 3.5.0.v20141222103320\r\nStudio 3.4.1.201410281743 \r\nXcode 6.1.1\r\n\r\nOn: \r\niPad mini, iOS 8.1\r\niPhone 6, iOS 8.2b3", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-12-30T19:43:02.000+0000", "updated": "2014-12-30T19:43:02.000+0000" }, { "id": "337661", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Attaching video used in sample. Import it into the project to reproduce the issue.", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-12-30T19:44:07.000+0000", "updated": "2014-12-30T19:44:07.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }