{ "id": "125608", "key": "AC-2176", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2014-02-09T08:03:45.000+0000", "created": "2014-01-29T23:24:43.000+0000", "labels": [ "dev-investigate", "videoplayer" ], "versions": [], "issuelinks": [], "assignee": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:41:09.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "attachment": [], "flagged": false, "summary": "initialPlaybackTime not working in iOS", "creator": { "name": "rondog", "key": "rondog", "displayName": "Ronnie Swietek", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "rondog", "key": "rondog", "displayName": "Ronnie Swietek", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Ti SDK: 3.2.0\r\nTi Studio: 3.2.0.201312191547\r\nOSX: 10.8.5\r\niOS 7", "comment": { "comments": [ { "id": "290381", "author": { "name": "rondog", "key": "rondog", "displayName": "Ronnie Swietek", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I've come up with a work around. It is weird because I never called play() to begin with, but here it is\n\n{code:title=app.js|borderStyle=solid}\nvidPlayer.stop();\nvidPlayer.setInitialPlaybackTime(resumeTime);\nvidPlayer.play();\n{code}", "updateAuthor": { "name": "rondog", "key": "rondog", "displayName": "Ronnie Swietek", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-30T00:53:28.000+0000", "updated": "2014-01-30T00:53:28.000+0000" }, { "id": "292099", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I have not been able to reproduce this issue with the following test case on iOS 7.0.3 simulator and Android 4.2.2 device. Are you testing this on simulator or device?\r\n\r\n{device}\r\nvar window = Titanium.UI.createWindow({\r\n title: 'Test',\r\n fullscreen: true,\r\n exitOnClose: true,\r\n backgroundColor: 'white'\r\n});\r\n \r\nvar vidPlayer = Ti.Media.createVideoPlayer({\r\n width: 480,\r\n height: 360,\r\n url: 'http://download.wavetlan.com/SVV/Media/HTTP/H264/Other_Media/H264_test7_voiceclip_mp4_480x360.mp4',\r\n autoplay:true,\r\n initialPlaybackTime:3000, // 3 seconds in\r\n endPlaybackTime:3000 // 3 seconds before end\r\n});\r\n\r\nwindow.add(vidPlayer);\r\nwindow.open();\r\n{device}", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-09T08:03:45.000+0000", "updated": "2014-02-09T08:04:19.000+0000" }, { "id": "292170", "author": { "name": "rondog", "key": "rondog", "displayName": "Ronnie Swietek", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I am testing this on the iOS simulator but the behavior was the same on the device. So to confirm, Your video started at 3 seconds and ended 3 seconds early with your test code above? What happens when you {code}Ti.API.info(vidPlayer.initialPlaybackTime);{code} ?", "updateAuthor": { "name": "rondog", "key": "rondog", "displayName": "Ronnie Swietek", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-10T17:33:46.000+0000", "updated": "2014-02-10T17:33:46.000+0000" }, { "id": "292205", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Correct. The video started after 3 seconds and ended 3 seconds early. Here is the output after adding the above line.\n\n[INFO] : vidPlayer.initialPlaybackTime : 3000", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-10T19:23:03.000+0000", "updated": "2014-02-10T19:23:03.000+0000" }, { "id": "292207", "author": { "name": "rondog", "key": "rondog", "displayName": "Ronnie Swietek", "active": true, "timeZone": "America/Los_Angeles" }, "body": "My example and you example do not work for me. My keep outputting NaN. What SDK version are you using?", "updateAuthor": { "name": "rondog", "key": "rondog", "displayName": "Ronnie Swietek", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-10T19:30:45.000+0000", "updated": "2014-02-10T19:30:45.000+0000" }, { "id": "292213", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I am using 3.2.0 GA.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-10T19:38:57.000+0000", "updated": "2014-02-10T19:38:57.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }