{ "id": "64199", "key": "TIMOB-3567", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2013-12-12T22:50:30.000+0000", "created": "2011-04-15T03:46:45.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2013-12-12T22:50:30.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": "{html}

About 1 in 5 times, when attempting to play streaming audio on\r\niphone, we get the message 'Unable to configure network read\r\nstream'. This comes from AudioStreamerBC.m. Fortunately, this bug\r\nis quite simple to fix.

\r\n

simply remove the following block:

\r\n

if(!CFReadStreamOpen)
\r\n{ ... } (lines 553-586)

\r\n

The author of this code incorrectly assumed that\r\nCFReadStreamOpen returning false signifies failure. This is not the\r\ncase. It simply signals that the stream was not able to be opened\r\nsynchronously. This is not an error condition and will simply cause\r\nthe following calls to block momentarily - ie not a problem. This\r\ncheck should be removed.

{html}", "attachment": [], "flagged": false, "summary": "AudioStreamerBC sometimes fails to play stream. (Solution here)", "creator": { "name": "flexible", "key": "flexible", "displayName": "Flexible", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "flexible", "key": "flexible", "displayName": "Flexible", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "130756", "author": { "name": "flexible", "key": "flexible", "displayName": "Flexible", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

This has been observed consistently on an iPod Touch 2G

{html}", "updateAuthor": { "name": "flexible", "key": "flexible", "displayName": "Flexible", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:46:45.000+0000", "updated": "2011-04-15T03:46:45.000+0000" }, { "id": "156907", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "body": "There is a HD Support ticket that encountered this problem while attempting to stream media.\r\n\r\nhttp://support.appcelerator.com/display/APP-856696\r\n\r\nWhether 3G, or over EDGE networks more specifically got this error: \"Unable to configure network read stream\".\r\n\r\nrepro sequence:\r\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\nTitanium.Media.defaultAudioSessionMode = Titanium.Media.AUDIO_SESSION_MODE_PLAYBACK;\r\nvar gStream = Titanium.Media.createAudioPlayer({ \r\n allowBackground: true,\r\n url: 'http://grischa.mp3.green.ch:80',\r\n});\r\ngStream.start();\r\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~", "updateAuthor": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-06-16T08:36:43.000+0000", "updated": "2011-06-16T08:36:43.000+0000" }, { "id": "284108", "author": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing this as invalid bug since we could not reproduce it. No addition information were provided by the original reporter.", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-12-12T22:50:30.000+0000", "updated": "2013-12-12T22:50:30.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }