1. #1
    Sencha User
    Join Date
    Sep 2011
    Posts
    14
    Vote Rating
    0
    Answers
    1
    fostom is on a distinguished road

      0  

    Question Unanswered: Audio - No sound

    Unanswered: Audio - No sound


    Hi

    I am trying to get a simple sound out of this framework, but am absolutely out of luck. Been searching all over the place. It shows the audio player and I get to press the play button, but no sound. Anyone know why? I test in chrome.

    This is my code:

    Code:
    Ext.setup({
        tabletStartupScreen: 'tablet_startup.png',
        phoneStartupScreen: 'phone_startup.png',
        icon: 'icon.png',
        glossOnIcon: false,
        onReady: function () {
            var browseCarousel = new Ext.Carousel({
                requires: [Ext.Audio],
                defaults: {
                    cls: 'card'
                },
                items: [{
                    html: 'A'
                }, 
                {
                     xtype: 'audio',
                     url: 'baby_laugh.mp3'                
                },
                {
                    html: 'B'            }
                ]
            });
            new Ext.Panel({
                fullscreen: true,
                layout: {
                    type: 'vbox',
                    align: 'stretch'
                },
                defaults: {
                    flex: 1
                },
                items: [browseCarousel],
                dockedItems: [{
                    xtype: 'toolbar',
                    title: 'This is the toolbar',
                    dock: 'top',
                    ui: 'light',
                    items: [
                    {
                        text: 'Home',
                        ui: 'back',
                        handler: function () {
                            main.setCard(0);
                        }
                    }]
                }]
            });
        }
    });

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,548
    Vote Rating
    872
    Answers
    3566
    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


    Just tested with this and no problems:

    Code:
            Ext.create('Ext.Panel', {
                fullscreen : true,
                items      : [
                    {
                        xtype : 'audio',
                        url   : 'song.mp3'
                    }
                ]
            });
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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 in print!

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

  3. #3
    Sencha User
    Join Date
    Sep 2011
    Posts
    14
    Vote Rating
    0
    Answers
    1
    fostom is on a distinguished road

      0  

    Default


    Hmmmm... did you just use Chrome to test that? I tested your code and still no sound. I can press the play button and the timer scrolls over from start to end, but no sound. The sound plays well in ex windows mediaplayer. Go figure...

    AudioNoSound.jpg

  4. #4
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,548
    Vote Rating
    872
    Answers
    3566
    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


    Yup, Chrome 16 to be exact... Only other thing is I'm on a Mac where you are on a Win7 machine.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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 in print!

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

  5. #5
    Sencha User
    Join Date
    Sep 2011
    Posts
    14
    Vote Rating
    0
    Answers
    1
    fostom is on a distinguished road

      0  

    Default


    Ok, so if I deploy this little sucker to my iPhone the code probably work there... cool. I have faith

  6. #6
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,548
    Vote Rating
    872
    Answers
    3566
    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


    Quote Originally Posted by fostom View Post
    Ok, so if I deploy this little sucker to my iPhone the code probably work there... cool. I have faith
    No promises of course. It could be in the encoding of the mp3 also.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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 in print!

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

  7. #7
    Touch Premium Member lylepratt's Avatar
    Join Date
    Dec 2010
    Location
    Austin, Texas
    Posts
    159
    Vote Rating
    0
    Answers
    3
    lylepratt is on a distinguished road

      0  

    Default


    Keep in mind that HTML5 Audio doesn't really work on Android until version 2.3.
    Twitter: lylepratt

  8. #8
    Sencha User
    Join Date
    Oct 2011
    Posts
    55
    Vote Rating
    0
    Answers
    1
    justinKohactive is on a distinguished road

      0  

    Default Windows 7 Mixer

    Windows 7 Mixer


    Is it possible you have chrome turned down or muted?

  9. #9
    Sencha User
    Join Date
    Sep 2011
    Posts
    14
    Vote Rating
    0
    Answers
    1
    fostom is on a distinguished road

      0  

    Default


    Quote Originally Posted by justinKohactive View Post
    Is it possible you have chrome turned down or muted?
    No. I get sound when I f.ex. test the kitchen sink example.