1. #1
    Sencha User
    Join Date
    May 2012
    Posts
    13
    Vote Rating
    0
    tech-study is on a distinguished road

      0  

    Default 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?

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,581
    Vote Rating
    433
    Answers
    3100
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    Is the audio file present after a build and package?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    May 2012
    Posts
    13
    Vote Rating
    0
    tech-study is on a distinguished road

      0  

    Default


    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.

  4. #4
    Sencha User
    Join Date
    Nov 2012
    Posts
    1
    Vote Rating
    0
    cutebokchoi is on a distinguished road

      0  

    Default 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.