Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-790] Ti.Media.Sound does not fire 'error' event when remote url is not found

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionFixed
Resolution Date2011-10-27T15:16:27.000+0000
Affected Version/sn/a
Fix Version/sBacklog
ComponentsiOS
Labelsios, remote, sound, url
Reporterkosso
AssigneeReggie Seagraves
Created2011-04-15T02:36:28.000+0000
Updated2011-10-27T15:16:27.000+0000

Description

In KS, try entering a bogus url in sound_remote_url.js and add an event listener for 'error.

sound.addEventListener('error', function()
{
    Ti.API.info('sound error event fired');
});

[WARN] shows...

[WARN] Error Domain=NSOSStatusErrorDomain Code=1954115647 "Operation could not be completed. (OSStatus error 1954115647.)". error loading sound url: file://localhost/var/folders/HJ/HJqe8P+0GNC-lEqdi0afZE+++TI/-Tmp-/A306.wav in -[TiMediaSoundProxy player] (TiMediaSoundProxy.m:122)

.. but no error event seems to be fired.

Comments

  1. Stephen Tramer 2011-04-15

    Still valid.

  2. Vikramjeet Singh 2011-08-02

    Bug Scrub: Valid. No Test Case exists Tested On: Mac OSX Lion TiMob Version: 1.7.2 TiStud Version: 1.0.2 Devices used: iPhone 4.3.4
  3. Wilson Luu 2011-10-27

    Bug is not valid, does not reproduce in: TiMOB sdk version: 1.8.0.v20111026114214 Studio version : 1.0.6.201110251616 OS version : Mac os x Lion Devices tested on: ipad2 4.3.5

JSON Source