{ "id": "116671", "key": "TIMOB-14541", "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": "15972", "description": "Release 3.4.0", "name": "Release 3.4.0", "archived": false, "released": true, "releaseDate": "2014-09-28" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-08-20T04:38:25.000+0000", "created": "2013-06-29T19:58:02.000+0000", "priority": null, "labels": [ "api", "audio", "ios", "module_media", "qe-manualtest" ], "versions": [], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-08-25T20:35:47.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": "h6.Issue\r\nAudioPlayer error events implementation. If you try to get some errors about audio streaming and it's not possible. When the application tries to play a remote resource and the connection is off, an error is fired and the dialog message is showed. (\"Unable to configure network stream\").\r\n\r\nh6.Use case\r\nI need get the error event about this error, but this is not implemented yet, i propose create an event for get all errors. (Ex. error event).\r\n{code}\r\nvar streamer = Ti.Media.createAudioPlayer();\r\nstreamer.url = \"http://54house.stream-balancer.de/\";\r\n//Another way to force the issue \"Unable to configure network stream\" by giving another file, not sound. \r\n//streamer.url = \"http://54house.stream-balancer.de/listen.pls\";\r\nstreamer.addEventListener('change', function(e){\r\n\tTi.API.info( 'Change: '+ JSON.stringify(e) );\t\r\n\tif(e.state == 0){\r\n\t\t//back to initialized state\r\n\t\t//Handle it! \r\n\t}\r\n});\r\nstreamer.start();\r\n{code}\r\n\r\nProbably iOS error property would allow to find out receiver's status so the error could be described (read-only property)\r\nhttp://developer.apple.com/library/ios/documentation/AVFoundation/Reference/AVPlayer_Class/Reference/Reference.html#//apple_ref/occ/instp/AVPlayer/error\r\n", "attachment": [], "flagged": false, "summary": "iOS: AudioPlayer throws error with no internet connection when attempting to play a remote resource", "creator": { "name": "fabiorphp", "key": "fabiorphp", "displayName": "Fábio Ribeiro", "active": true, "timeZone": "America/Sao_Paulo" }, "subtasks": [], "reporter": { "name": "fabiorphp", "key": "fabiorphp", "displayName": "Fábio Ribeiro", "active": true, "timeZone": "America/Sao_Paulo" }, "environment": "SDK 3.1.1 iOS", "comment": { "comments": [ { "id": "261331", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Edit: Added labels and moved to main project.", "updateAuthor": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-07-10T21:21:14.000+0000", "updated": "2013-07-12T18:32:42.000+0000" }, { "id": "261386", "author": { "name": "fabiorphp", "key": "fabiorphp", "displayName": "Fábio Ribeiro", "active": true, "timeZone": "America/Sao_Paulo" }, "body": "[Moved to description]", "updateAuthor": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-07-11T00:53:37.000+0000", "updated": "2013-07-12T18:31:02.000+0000" }, { "id": "317467", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue cannot reproduce \r\nTitanium Command-Line Interface,\r\n CLI version 3.3.0, \r\nTitanium SDK version 3.4.0.GA\r\nIOS 7.1 \r\n", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-07T08:00:09.000+0000", "updated": "2014-08-18T13:27:59.000+0000" }, { "id": "318514", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~shameerj] and [~sunila]. We should test this in 3.1.1 and 3.4.0 (latest master).\r\n\r\n* If it cannot be reproduced in 3.1.1, then mark as Can't Reproduce, with no fix version\r\n* If it can be reproduced in 3.1.1 but not in 3.4.0, mark as Fixed in 3.4.0\r\n\r\nReopening.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-13T19:42:46.000+0000", "updated": "2014-08-13T19:42:46.000+0000" }, { "id": "319421", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduces on SDK version 3.1.1 \r\nCannot reproduces on 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\nTitanium SDK version 3.1.1.GA\r\n\r\niOS SDK: 7.1 \r\niOS iPhone Simulator: 7.1", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-20T04:37:40.000+0000", "updated": "2014-08-20T04:37:40.000+0000" }, { "id": "320186", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The console output\r\n[INFO] : Change: {\"state\":1,\"description\":\"starting\",\"bubbles\":true,\"type\":\"change\",\"source\":{},\"cancelBubble\":false}\r\n[INFO] : Change: {\"state\":2,\"description\":\"waiting_for_data\",\"bubbles\":true,\"type\":\"change\",\"source\":{},\"cancelBubble\":false}\r\n[INFO] : Change: {\"state\":3,\"description\":\"waiting_for_queue\",\"bubbles\":true,\"type\":\"change\",\"source\":{},\"cancelBubble\":false}\r\n[INFO] : Change: {\"state\":4,\"description\":\"playing\",\"bubbles\":true,\"type\":\"change\",\"source\":{},\"cancelBubble\":false}\r\n[INFO] : Change: {\"state\":5,\"description\":\"buffering\",\"bubbles\":true,\"type\":\"change\",\"source\":{},\"cancelBubble\":false}\r\n\r\nEnvironment tested:\r\nMac osx 1-.9.4 Maverics\r\nAppcelerator Studio, build: 3.4.0.201408201526\r\nTitanium SDK, build: 3.4.0.v20140824222513\r\nNode.JS Version: v0.10.28\r\nNPM Path: /usr/local/bin/npm\r\nNPM Version: 1.4.23\r\nacs@1.0.16\r\nalloy@1.5.0-dev (git://github.com/appcelerator/alloy.git#b2e8f580d023e45c63072df924666e58193a8981)\r\ninstall@0.1.7\r\nnpm@1.4.23\r\nsudo@1.0.3\r\ntitanium@3.4.0-dev (git://github.com/appcelerator/titanium.git#9079326639c7f610dafee33dd16742de7d92d795)\r\ntitanium-code-processor@1.1.1\r\nXcode6\r\nDevice: iPhone 5c iOS 7.1\r\n", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-25T20:28:08.000+0000", "updated": "2014-08-25T20:28:08.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }