Hybrid View

    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.
  1. #1
    Touch Premium Member
    Join Date
    Feb 2009
    Location
    Firenze, Italia
    Posts
    162
    Vote Rating
    0
    stefx is on a distinguished road

      0  

    Default 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:
    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
    		}]
        }
    });
    If I try with internet browser (on device) I can ear the audio, with native application I can't.
    In the apk the file is present.

    I think this is a bug.
    Thanks
    Stefano

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,017
    Vote Rating
    849
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Thanks for the report! I have opened a bug in our bug tracker.

  3. #3
    Touch Premium Member
    Join Date
    Feb 2009
    Location
    Firenze, Italia
    Posts
    162
    Vote Rating
    0
    stefx is on a distinguished road

      0  

    Default


    Hi mitchell, any workaround?
    thanks
    stefano

Thread Participants: 1