Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-3827] Android 3.0 Xoom: Remote sound not heard, prepare failed seen

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-07-07T16:26:26.000+0000
Affected Version/sRelease 1.7.0
Fix Version/sSprint 2011-27, Release 1.8.0
ComponentsAndroid
Labelsn/a
ReporterThomas Huelbert
AssigneeOpie Cyrus
Created2011-04-29T16:08:25.000+0000
Updated2011-09-15T17:35:28.000+0000

Description

1. Phone > sound > Remote URL with adb open results: sound doe snot play, errors seen same case works as expected on 2.3 and < devices. D/KrollContext( 3819): (kroll$31: app://examples/sound_remote_url.js) [1738,945834] Running evaluated script: app://examples/sound_remote_url.js W/iPhone ( 3819): (kroll$31: app://examples/sound_remote_url.js) [384,946218] UI.iPhone.SystemButton.FLEXIBLE_SPACE property isn't supported on Android I/ActivityManager( 134): Displayed com.appcelerator.onesixtwo/org.appcelerator.titanium.TiActivity: +732ms D/TitaniumModule( 3819): (kroll$31: app://examples/sound_remote_url.js) [508,946726] calling interval timer 28 @1304111683210 D/TitaniumModule( 3819): (kroll$31: app://examples/sound_remote_url.js) [501,947227] calling interval timer 28 @1304111683711 I/StagefrightPlayer( 85): setDataSource('http://www.nch.com.au/acm/8kmp38.wav') I/NuHTTPDataSource( 85): connect to www.nch.com.au:80/acm/8kmp38.wav @0 I/NuCachedSource2( 85): ERROR_END_OF_STREAM E/MediaPlayer( 3819): error (1, -2147483648) W/TiSound ( 3819): (kroll$31: app://examples/sound_remote_url.js) [807,948034] Issue while initializing : W/TiSound ( 3819): java.io.IOException: Prepare failed.: status=0x1 W/TiSound ( 3819): at android.media.MediaPlayer.prepare(Native Method) W/TiSound ( 3819): at ti.modules.titanium.media.TiSound.initialize(TiSound.java:120) W/TiSound ( 3819): at ti.modules.titanium.media.TiSound.play(TiSound.java:179) W/TiSound ( 3819): at ti.modules.titanium.media.SoundProxy.play(SoundProxy.java:116) W/TiSound ( 3819): at ti.modules.titanium.media.SoundProxyBindingGen$10.invoke(SoundProxyBindingGen.java:407) W/TiSound ( 3819): at org.appcelerator.kroll.KrollMethod.call(KrollMethod.java:51) W/TiSound ( 3819): at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1701) W/TiSound ( 3819): at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:854) W/TiSound ( 3819): at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164) W/TiSound ( 3819): at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426) W/TiSound ( 3819): at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3177) W/TiSound ( 3819): at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162) W/TiSound ( 3819): at org.appcelerator.titanium.kroll.KrollCallback.callSync(KrollCallback.java:139) W/TiSound ( 3819): at org.appcelerator.titanium.kroll.KrollCallback$1.run(KrollCallback.java:164) W/TiSound ( 3819): at android.os.Handler.handleCallback(Handler.java:587) W/TiSound ( 3819): at android.os.Handler.dispatchMessage(Handler.java:92) W/TiSound ( 3819): at android.os.Looper.loop(Looper.java:126) W/TiSound ( 3819): at org.appcelerator.titanium.kroll.KrollHandlerThread.run(KrollHandlerThread.java:86)

Comments

  1. Eric Merriman 2011-06-30

    This also occurred on my recent Nexus S pass: Nexus S 2.3.4, Titanium Studio, build: 1.0.1.201106171427, SDK 1_7_X ra8dd437a. Also occurs on 1.7.0 and 1.7.1.
  2. Don Thorp 2011-06-30

    It looks to me like a network issue. We're being told end of stream so prepare is obviously going to fail. Not sure what to do.
  3. Bill Dawson 2011-07-07

    Opie's change of URL (different source material) has been pushed. The source material is heard successfully both on iOS and Android. You should probably turn up the volume just a bit, it might be a bit too quiet of a recording.
  4. Alan Vaghti 2011-09-15

    Verified fix on Xoom tablet 3.2 and Nexus S 2.3.4. SDK used: 1.8.0.v20110915133349 Used KitchenSink pulled from master.

JSON Source