{ "id": "92864", "key": "TIMOB-9409", "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": { "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": "2016-10-18T13:14:33.000+0000", "created": "2012-06-05T18:12:43.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "api", "parity" ], "versions": [ { "id": "13273", "description": "Release 2.0.2", "name": "Release 2.0.2", "archived": false, "released": true, "releaseDate": "2012-05-31" }, { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [ { "id": "20053", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "99376", "key": "AC-2658", "fields": { "summary": "iOS: Ti.Media.AudioPlayer can't play local audio files (using the url property)", "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" } }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "17684", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "79204", "key": "TIMOB-4992", "fields": { "summary": "iOS:AudioPlayer only plays part of an mp3", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "36301", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "128447", "key": "TIMOB-16787", "fields": { "summary": "iOS: AudioPlayer crashes with local mp3 files", "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": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2017-03-23T21:13:45.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": "Steps to reproduce:\r\n1. Put following code in TiMobile project:\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tlayout: 'vertical',\r\n\tbackgroundColor: 'white'\r\n});\r\n \r\nvar audio = Ti.Media.createAudioPlayer({url: 'music.mp3', volume: 0.5});\r\nwin.add(createVolumeControl(audio));\r\n \r\nvar playAudioButton = Ti.UI.createButton({\r\n\ttitle: \"Play Audio\",\r\n height: 100,\r\n width: 200\r\n});\r\n\r\nplayAudioButton.addEventListener('click', function() {\r\n //audio.play();\r\n audio.start();\r\n});\r\n\r\nwin.add(playAudioButton);\r\n\r\nwin.open();\r\n\r\nfunction createVolumeControl(player) {\r\n var slider = Ti.UI.createSlider({\r\n value: player.volume * 100,\r\n min: 0,\r\n max: 100,\r\n width: Ti.UI.FILL\r\n });\r\n \r\n slider.addEventListener('change', function(e) {\r\n player.volume = e.value/100;\r\n });\r\n \r\n return slider;\r\n};\r\n\r\n{code}\r\n\r\n2. Add music.mp3 attachment to Resource folder\r\n3. Launch app on iOS device\r\n4. Press *Play Audio*\r\n\r\nActual: Get a file error dialog (see file_error.png) and the warning appears in the console: \r\n{code}Jun 5 18:08:01 unknown monkeyButt2[1379] : No audio data found.{code}\r\n\r\nExpected: App should be able to play local mp3 files\r\n\r\nNote:\r\n* Above code works as expected on Android\r\n* This is *not* a regression. This bug appears in SDK build 2.0.2.GA.", "attachment": [ { "id": "28183", "filename": "file_error.png", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-06-05T18:12:43.000+0000", "size": 106067, "mimeType": "image/png" }, { "id": "28189", "filename": "good.mp3", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-06-06T09:25:18.000+0000", "size": 45998, "mimeType": "audio/mp3" }, { "id": "28182", "filename": "music.mp3", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-06-05T18:12:43.000+0000", "size": 1073911, "mimeType": "audio/mp3" } ], "flagged": false, "summary": "iOS: AudioPlayer - Cannot play local mp3 file", "creator": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "SDK build: 2.0.2.GA, 2.1.0.v20120604151821\r\nTitanium Studio, build: 2.1.0.201206041625\r\nxcode: 4.3.2\r\nDevice: iphone 4s verizon (5.0.1)", "comment": { "comments": [ { "id": "197510", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Hey Neeraj: I tried good.mp3 from TIMOB-4992 and the same bug appears.\r\n\r\nDetails about the mp3s:\r\n*good.mp3*\r\nDuration: 4 sec\r\nContent: talking about toads\r\n\r\n*music.mp3*\r\nDuration: 1 min 7 sec\r\nContent: acoustic sci-fi music", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-06-06T09:27:34.000+0000", "updated": "2012-06-06T09:34:26.000+0000" }, { "id": "215132", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "updateAuthor": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2012-08-20T09:51:27.000+0000", "updated": "2012-08-20T09:51:27.000+0000" }, { "id": "255891", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "body": "Another testcase:\r\n{panel:title=app.js}\r\n{code}\r\nSoundtrackPlayer=Ti.Media.createAudioPlayer({\r\n url:'APopularSong.mp3',\r\n allowBackground:false\r\n });\r\nSoundtrackPlayer.start();\r\n{code}\r\n{panel}\r\n\r\nUnder iOS, trying to play the local audio file (the MP3 file exists in the Resources directory of the project) using Ti.Media.AudioPlayer fails with the following error message (popup dialog):\r\n\r\n{panel}{noformat}Unable to configure network read stream{noformat}{panel}\r\n\r\nand the song does not play.\r\n\r\nThe same code works correctly on Android. Therefore, it is also a parity issue.\r\n", "updateAuthor": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2013-06-04T18:39:40.000+0000", "updated": "2013-06-04T18:39:40.000+0000" }, { "id": "320747", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue still exists with SDK Version 3.4.0\r\n\r\nTitanium Command-Line Interface, \r\nCLI version 3.3.0, \r\nTitanium SDK version 3.4.0.GA \r\nAppcelerator Studio, build: 3.3.0.201407111535 \r\niOS SDK: 7.0", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-28T05:50:56.000+0000", "updated": "2014-08-28T05:50:56.000+0000" }, { "id": "326925", "author": { "name": "dkcarmo", "key": "dkcarmo", "displayName": "Daniel Kunzler", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue is two-year-old (with medium priority) and still exists with SDK 3.4.0, iOS SDK 8.0\r\n\r\nCLI version 3.4.0\r\nTitanium SDK version 3.4.0.GA \r\nTitanium Studio, build: 3.4.0.201409261227\r\niOS SDK: 8.0\r\n\r\nIs there any workaround to play long local MP3 files on iOS?", "updateAuthor": { "name": "dkcarmo", "key": "dkcarmo", "displayName": "Daniel Kunzler", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-10-03T20:11:24.000+0000", "updated": "2014-10-03T20:11:24.000+0000" }, { "id": "337730", "author": { "name": "dkcarmo", "key": "dkcarmo", "displayName": "Daniel Kunzler", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I could confirm that using a Webview is NOT a workaround for this issue. It consumes more resources and it plays MP3s on full screen on iPhones (but good on iPad).", "updateAuthor": { "name": "dkcarmo", "key": "dkcarmo", "displayName": "Daniel Kunzler", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-01-02T03:39:34.000+0000", "updated": "2015-01-02T03:39:34.000+0000" }, { "id": "399235", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Cannot reproduce with Titanium SDK 5.5.1.GA and later using both kroll- and main-thread.\r\n\r\nTest-case 1 (play directly):\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({\r\n\tlayout: 'vertical',\r\n\tbackgroundColor: 'white'\r\n});\r\n \t\r\nvar SoundtrackPlayer=Ti.Media.createAudioPlayer({\r\n url:'music.mp3',\r\n allowBackground:false\r\n });\r\nSoundtrackPlayer.start();\r\n \r\nwin.open();\r\n{code}\r\n\r\nTest-case 2 (play after click):\r\n{code:javascript}\r\nvar win = Ti.UI.createWindow({\r\n\tlayout: 'vertical',\r\n\tbackgroundColor: 'white'\r\n});\r\n \r\nvar audio = Ti.Media.createAudioPlayer({url: 'music.mp3', volume: 0.5});\r\n \r\nvar playAudioButton = Ti.UI.createButton({\r\n\ttitle: \"Play Audio\",\r\n height: 100,\r\n width: 200\r\n});\r\n \r\nplayAudioButton.addEventListener('click', function() {\r\n //audio.play();\r\n audio.start();\r\n});\r\n \r\nwin.add(playAudioButton);\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-10-18T13:14:33.000+0000", "updated": "2016-10-18T13:14:33.000+0000" }, { "id": "415382", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Can verify this ticket as \"Cannot Reproduce\". Tested with the following environment;\r\niPhone 7 and Simulator (10.2)\r\nMacOS 10.11.6 (15G31)\r\nStudio 4.8.1.201612050850\r\nTi SDK 6.0.3 GA\r\nAppc NPM 4.2.8\r\nAppc CLI 6.1.0\r\nTi CLI 5.0.11\r\nAlloy 1.9.5\r\nArrow 1.10.1\r\nXcode 8.2 (8C38)\r\nNode v4.6.0\r\nJava 1.7.0_80", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-23T21:13:45.000+0000", "updated": "2017-03-23T21:13:45.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }