Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1941] Android: erroneous state (playing) when invalid url is entered in remote streaming test case

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:57:36.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.6.0 M05
ComponentsAndroid
Labelsandroid, defect, release-1.6.0, sound, streaming
ReporterThomas Huelbert
AssigneeDon Thorp
Created2011-04-15T03:06:10.000+0000
Updated2011-04-17T01:57:36.000+0000

Description

1.4.2.5935b3 G1 running 1.6

1.Phone>sound>Remote streaming
2.enter some chars into the field, tap "start stream"

results:State reports itself as playing

the script is

streamer.addEventListener('change',function(e)
{

stateLabel.text = 'State: '+e.description +' ('+e.state+')';

});

Comments

  1. Opie Cyrus 2011-04-15

    (from [1ed9dd73c98ce535b6b1f2101502009a6d061372]) [#1941 state:fixed-in-qa] changes TiSound to return stopped state when play fails

    TiSound.play will not return a stopped state when a play call fails inside the initialize method. Updated KS example to handle the stopped state correctly and update the screen with the proper play state and status
    https://github.com/appcelerator/titanium_mobile/commit/1ed9dd73c98ce535b6b1f2101502009a6d061372"> https://github.com/appcelerator/titanium_mobile/commit/1ed9dd73c98c...

  2. Opie Cyrus 2011-04-15

    The fix can be verified via the updated KS test case (part of the commit for this ticket) mentioned in the first post.

  3. Don Thorp 2011-04-15

    Verified on G1/1.6 and Nexus One/2.2.1 using build #e1cb22a

JSON Source