Hybrid View

  1. #1
    Sencha User
    Join Date
    Sep 2011
    Posts
    14
    Answers
    1
    Vote Rating
    0
    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
    35,703
    Answers
    3356
    Vote Rating
    749
    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
    Answers
    1
    Vote Rating
    0
    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
    35,703
    Answers
    3356
    Vote Rating
    749
    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
    Answers
    1
    Vote Rating
    0
    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
    35,703
    Answers
    3356
    Vote Rating
    749
    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.

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar