Results 1 to 9 of 9

Thread: Audio - No sound

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    Sep 2011
    Posts
    14
    Answers
    1
    Vote Rating
    0
      0  

    Question 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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,413
    Answers
    3898
    Vote Rating
    1270
      0  

    Default

    Just tested with this and no problems:

    Code:
            Ext.create('Ext.Panel', {
                fullscreen : true,
                items      : [
                    {
                        xtype : 'audio',
                        url   : 'song.mp3'
                    }
                ]
            });
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    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
    Answers
    1
    Vote Rating
    0
      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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,413
    Answers
    3898
    Vote Rating
    1270
      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 @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    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
    Answers
    1
    Vote Rating
    0
      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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,413
    Answers
    3898
    Vote Rating
    1270
      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 @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    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.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •