Ti.Media.createAudioPlayer / unknown file format error

You must Login before you can answer or comment on any questions.

Hi,

i made an online radio app, which runs fine on the most mobiles that I know. Yesterday I bought an Odys Touch tablet with Android 4.0.3 installed to test tablet applications.

Now I have the problem that my radio isn't playing on the tablet, the log shows this:

07-13 16:12:24.675: DEBUG/CDX_Player(20706): ******** CedarX Player Version: 00010702 ********
07-13 16:12:24.705: DEBUG/MediaPlayerService(20706): MediaPlayerService::Client::setDataSource() : screen = 0
07-13 16:12:24.725: INFO/CedarPlayerWrapper(20706): setDataSource('http://54house.stream-balancer.de')
07-13 16:12:24.725: WARN/MediaPlayer(20961): info/warning (701, 0)
07-13 16:12:24.735: VERBOSE/ChromiumHTTPDataSource(20706): connect on behalf of uid 1103486244
07-13 16:12:24.735: INFO/ChromiumHTTPDataSource(20706): connect to http://54house.stream-balancer.de @0
07-13 16:12:25.215: DEBUG/sft_http_stream(20706): reset stream
07-13 16:12:26.915: WARN/demux_http(20706): unknown file format!
07-13 16:12:26.915: ERROR/DemuxSftNetwork_Component(20706): cedar demuxer open error
07-13 16:12:26.915: ERROR/CedarXPlayer(20706): CedarXPlayer:prepare error!
07-13 16:12:26.915: ERROR/MediaPlayer(20961): error (1, -2147483648)
07-13 16:12:26.935: WARN/TiSound(20961): (KrollRuntimeThread) [2275,19247] Issue while initializing :
        java.io.IOException: Prepare failed.: status=0x1
        at android.media.MediaPlayer.prepare(Native Method)
        at ti.modules.titanium.media.TiSound.initialize(TiSound.java:119)
        at ti.modules.titanium.media.TiSound.play(TiSound.java:178)
        at ti.modules.titanium.media.AudioPlayerProxy.play(AudioPlayerProxy.java:125)
        at ti.modules.titanium.media.AudioPlayerProxy.start(AudioPlayerProxy.java:118)
        at org.appcelerator.kroll.runtime.v8.V8Object.nativeFireEvent(Native Method)
        at org.appcelerator.kroll.runtime.v8.V8Object.fireEvent(V8Object.java:60)
        at org.appcelerator.kroll.KrollProxy.doFireEvent(KrollProxy.java:494)
        at org.appcelerator.kroll.KrollProxy.handleMessage(KrollProxy.java:675)
        at org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:392)
        at android.os.Handler.dispatchMessage(Handler.java:95)
        at android.os.Looper.loop(Looper.java:137)
        at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:104)
07-13 16:12:26.935: INFO/CDX_Player(20706): cancel prepare!
07-13 16:12:26.955: WARN/MediaPlayer(20961): mediaplayer went away with unhandled events
07-13 16:12:27.015: INFO/wpa_supplicant(1918): [CTRL_IFACE]SIGNAL_POLL
07-13 16:12:30.015: INFO/wpa_supplicant(1918): [CTRL_IFACE]SIGNAL_POLL
07-13 16:12:33.025: INFO/wpa_supplicant(1918): [CTRL_IFACE]SIGNAL_POLL
07-13 16:12:36.025: INFO/wpa_supplicant(1918): [CTRL_IFACE]SIGNAL_POLL
07-13 16:12:36.595: WARN/TiAnalyticsSvc(20961): (Thread-1070) [9671,28918] Analytics Service Started
07-13 16:12:36.615: INFO/TiAnalyticsSvc(20961): (Thread-1070) [27,28945] Sending 1 analytics events.
07-13 16:12:37.725: DEBUG/dalvikvm(20961): GC_CONCURRENT freed 592K, 13% free 7590K/8711K, paused 2ms+4ms
07-13 16:12:38.345: WARN/TiAnalyticsSvc(20961): (Thread-1070) [1731,30676] Stopping Analytics Service
For me it seems that this is the important message:

07-13 16:12:26.915: WARN/demux_http(20706): unknown file format!

The project was compiled with SDK 2.1.0.GA The audio stream is a mp3 stream.

On Android 4 and IPhone mobile phones it's runnung fine. I have only the problems with the tablet.

Any idea what the problem is, and how I can fix it?

thanks in advance

Frank

— asked 12 months ago by Frank Dase
2 Comments
  • If you are playing a Shoutcast stream it's worth putting a /; (forward slash and semi-colon) on the end of your URL and then an mp3 extension to force Shoutcast into MP3 OVERIDE mode. I had the same where stream played OK on some Android devices but not tablets. So the URL would be http://example.net:8000/;.mp3

    — commented 9 months ago by Patrick Mounteney

  • yes, many thanks. It works. Great work. :-)

    — commented 9 months ago by Frank Dase

1 Answer

meanwhile it seems to be a problem of the device. Odys Xelio Tablet has problems playing audio streams via MediaPlayer.

At the moment I'm waiting for an detailed answer from the product manager of Odys.

Your Answer

This question has been locked and cannot accept new answers.