Forum /
Sencha Touch 2.x Forums /
Sencha Touch 2.x: Q&A /
Unanswered: Playing audio on Android native
Unanswered: Playing audio on Android native
My audio files does not play on android v2.3.3. I guess as I am using local audio files there is some issue.
My audio files are in the sdk/resources/data/audio dir. To play the audio files I am detecting the environment & prefixing the url with: 'file:///android_asset/www/' but to no avail.
Can someone help?
Sencha - Senior Forum Manager
Is the audio file present after a build and package?
Yeah the audio file does exist. Is there an auto-play issue with sencha audio in Android?
I still haven't found a fix on it.
In the DDMS - getting mediaPlayer error after StageFrightPlayer setdatasource
In the DDMS - getting mediaPlayer error after StageFrightPlayer setdatasource
I am getting an audio playing issue for my app built in sencha 2.1 for api level 10. Mediaplayer errors galore.
In the DDMS the setDataSource is going to:
file:///android_asset/resources/audio/one.mp3 which is correct.
Straight after the setdatasource in StageFrightPlayer it gives a MediaPlayer error (1, -2147483648)
so strange. Don't know what else I can try. It works fine in the chrome browser.
Sencha is used by over two million developers. Join the community, wherever you’d like that community to be
or Join Us