-
19 Nov 2012 3:35 AM #1
Audio on Android Native App don't work
Audio on Android Native App don't work
Hi, I've try to play an audio on android 2.3.5 device (sencha touch 2.1).
This is the code:
If I try with internet browser (on device) I can ear the audio, with native application I can't.Code:Ext.define('fh.view.AudioPlayer', { extend: 'Ext.Panel', config: { items:[{ xtype : 'button', height: 100, id: 'btn', text : 'Play audio', handler: function() { var audio = this.getParent().down('audio'); if (audio.isPlaying()) { audio.pause(); this.setText('Play audio'); } else { audio.play(); this.setText('Pause audio'); } } },{ xtype: 'audio', url : 'data/audio/test/01.mp3', enableControls: false }] } });
In the apk the file is present.
I think this is a bug.
Thanks
Stefano
-
19 Nov 2012 12:47 PM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,641
- Vote Rating
- 434
Thanks for the report! I have opened a bug in our bug tracker.
-
4 Dec 2012 3:59 AM #3
Hi mitchell, any workaround?
thanks
stefano
You found a bug! We've classified it as
TOUCH-3726
.
We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.


Reply With Quote