{ "id": "117178", "key": "TIMOB-14554", "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": "15576", "description": "2013 Sprint 16", "name": "2013 Sprint 16", "archived": true, "released": true, "releaseDate": "2013-08-12" }, { "id": "15577", "description": "2013 Sprint 16 Core", "name": "2013 Sprint 16 Core", "archived": true, "released": true, "releaseDate": "2013-08-12" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-08-18T10:23:21.000+0000", "created": "2013-07-15T12:04:35.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "ios", "mobilesdk", "module_media", "qe-manualtest", "titanium" ], "versions": [ { "id": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "15478", "description": "Release 3.1.1", "name": "Release 3.1.1", "archived": true, "released": true, "releaseDate": "2013-06-17" } ], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-08-18T10:23:21.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": "currentPlaybackTime property in iOS video Player APIs does not work for local movie files.\r\n\r\ntest case:\r\n1: Use the below sample code and copy paste it on new sample app.js file.\r\n2: copy paste any movie file of length 3 to 4 minutes.\r\n3: Deploy the code on device or play it over simulator.\r\n4: currentPlaybackTime which is suppose to increase the current Time after 15 seconds does not work.\r\n\r\n{code}\r\nvar tbGroup = Ti.UI.createTabGroup();\r\n\r\nvar lb1 = Ti.UI.createLabel({\r\n text : \"label1 window1\",\r\n height : 50,\r\n font : {\r\n fontSize : 30\r\n },\r\n color : 'black'\r\n});\r\n\r\nvar lbTemp = Ti.UI.createLabel({\r\n text : \"labelTemp windowTemp\",\r\n height : 50,\r\n font : {\r\n fontSize : 30\r\n },\r\n color : 'black'\r\n});\r\n//var iOSURL = \"http://movies.apple.com/media/us/ipad/2010/tours/apple-ipad-video-us-20100127_r848-9cie.mov\"; // use it for iOS\r\nvar vPlayer = Ti.Media.createVideoPlayer({\r\n\turl:\"moviefile.mp4\",\r\n\tinitialPlaybackTime:20000,\r\n\tmediaControlStyle:Ti.Media.VIDEO_CONTROL_DEFAULT,\r\n\tmediaTypes:Titanium.Media.VIDEO_MEDIA_TYPE_VIDEO\r\n});\r\nvar lb2 = Ti.UI.createLabel({\r\n text : \"label2 window2\",\r\n height : 50,\r\n font : {\r\n fontSize : 30\r\n },\r\n color : 'black'\r\n});\r\nvar win1 = Ti.UI.createWindow({\r\n backgroundImage : '/friendship-99a.jpg'\r\n});\r\nwin1.add(vPlayer);\r\n\r\nvar winTemp = Ti.UI.createWindow({\r\n backgroundImage : '/friendship-99a.jpg'\r\n});\r\nwinTemp.add(lbTemp);\r\n\r\nvar win2 = Ti.UI.createWindow({\r\n backgroundImage : '/friendship-99a.jpg'\r\n});\r\nwin2.add(lb2);\r\n\r\nvar tb1 = Ti.UI.createTab({\r\n window : win1\r\n});\r\nvar tb2 = Ti.UI.createTab({\r\n window : win2\r\n});\r\n\r\n\r\nvPlayer.addEventListener(\"load\", function(e) {\r\n setTimeout(function(){\r\n \tvPlayer.currentPlaybackTime = 200000\r\n },15000);\r\n\r\n});\r\n\r\nlb1.addEventListener(\"click\", function(e) {\r\n //win1.add(activityIndicator);\r\n \r\n\r\n});\r\n\r\ntbGroup.tabs = [tb1, tb2];\r\n\r\ntbGroup.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: currentPlaybackTime Property of VideoPlayer API does not work for local movies.", "creator": { "name": "anigam", "key": "anigam", "displayName": "Ashish Nigam", "active": true, "timeZone": "Asia/Kolkata" }, "subtasks": [], "reporter": { "name": "anigam", "key": "anigam", "displayName": "Ashish Nigam", "active": true, "timeZone": "Asia/Kolkata" }, "environment": "Titanium Mobile SDK 3.1.1, 3,1.0\r\niOS 5, 6", "comment": { "comments": [ { "id": "264328", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Pull #4518 pending", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-01T00:08:16.000+0000", "updated": "2013-08-01T00:08:16.000+0000" }, { "id": "276074", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed. Verified VideoPlayer.currentPlaybackTime gets set to 200000 ms (~ 3 minutes and 33 seconds) after 15000 ms (15 seconds).\n\nTested on:\n\nTitanium Studio, build: 3.2.0.201310181940\nOS: Mac OS X Mountain Lion (10.8.5)\nSDK build: 3.2.0.v20131021142445\nTi CLI: 3.2.0 (72f7426b4ee6c2d2883c666d5b7e03906a16012f)\nDevices: iphone 4s (6.0.1), iphone 5 (7.0.2)", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-10-22T00:37:17.000+0000", "updated": "2013-10-22T00:37:17.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }