{ "id": "170212", "key": "AC-5340", "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": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2017-11-07T16:05:19.000+0000", "created": "2017-11-02T18:55:29.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-11-08T21:08:25.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [], "description": "Titanium.Media.VideoPlayer setUrl(url) works fine the first time, but the second time after setting another url setUrl(otherUrl), starts playing the first url set, if I execute getUrl() it returns the second url, but it is actually playing the first url set.\r\n\r\n\r\n\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t\r\n\r\n\r\n// index.js\r\nvar videoPlayer = Titanium.Media.createVideoPlayer({\r\n\ttop : 0,\r\n\tvisible: false,\r\n\tautoplay: true,\r\n\tmediaControlStyle : Ti.Media.VIDEO_CONTROL_NONE,\r\n\tscalingMode : Ti.Media.VIDEO_SCALING_ASPECT_FIT\r\n});\r\n\r\nfunction playOne(e) {\r\n\tvideoPlayer.setUrl('http://nadikun.com/audio/pink-shades-o-pnr.mp3');\r\n\tvideoPlayer.play();\r\n}\r\n\r\nfunction playTwo(e) {\r\n\tvideoPlayer.stop();\r\n\t// the issue is here, even though I am setting another URL still plays the previous URL set\r\n\tvideoPlayer.setUrl('http://nadikun.com/audio/suit-and-tie-oscar-wylde-remix.mp3');\r\n\tvideoPlayer.play();\r\n}\r\n\r\nfunction stop(e) {\r\n\tvideoPlayer.stop();\r\n}\r\n\r\nfunction getUrl(e) {\r\n\talert('videoPlayer.getUrl(): ' + videoPlayer.getUrl());\r\n}\r\n\r\n$.index.open();\r\n\r\n\r\n\r\n", "attachment": [], "flagged": false, "summary": "iOS Titanium.Media.VideoPlayer setUrl not working on SDK 6.x", "creator": { "name": "horozco", "key": "horozco", "displayName": "Henry Orozco", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "horozco", "key": "horozco", "displayName": "Henry Orozco", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "430117", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, Please create a full reproducible test code and provide here for us to test the issue. Also, provide detail affected environment. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-11-04T20:27:31.000+0000", "updated": "2017-11-04T20:27:54.000+0000" }, { "id": "430224", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "The video-player wasn't touched between 5.x and 6.x, so it has to be something on your end. If not, please try the new video-player being introduced in SDK 7.0 as part of TIMOB-19040", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-11-07T16:05:19.000+0000", "updated": "2017-11-07T16:05:19.000+0000" }, { "id": "430315", "author": { "name": "horozco", "key": "horozco", "displayName": "Henry Orozco", "active": true, "timeZone": "America/Los_Angeles" }, "body": "full reproducible test code added.", "updateAuthor": { "name": "horozco", "key": "horozco", "displayName": "Henry Orozco", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-11-08T21:08:25.000+0000", "updated": "2017-11-08T21:08:25.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }