-
17 Nov 2011 12:54 PM #1
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); } }] }] }); } });
-
17 Nov 2011 1:15 PM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,677
- Vote Rating
- 435
- Answers
- 3110
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
________________
http://www.JSONPLint.com - Source to lint your JSONP!
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 almost in print!
When posting code, please use BBCode's CODE tags.
-
17 Nov 2011 1:39 PM #3
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
-
17 Nov 2011 2:01 PM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,677
- Vote Rating
- 435
- Answers
- 3110
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
________________
http://www.JSONPLint.com - Source to lint your JSONP!
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 almost in print!
When posting code, please use BBCode's CODE tags.
-
17 Nov 2011 2:06 PM #5
Ok, so if I deploy this little sucker to my iPhone the code probably work there... cool. I have faith

-
17 Nov 2011 2:17 PM #6Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,677
- Vote Rating
- 435
- Answers
- 3110
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
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 almost in print!
When posting code, please use BBCode's CODE tags.
-
18 Nov 2011 7:12 AM #7
Keep in mind that HTML5 Audio doesn't really work on Android until version 2.3.
Twitter: lylepratt
-
18 Nov 2011 4:57 PM #8
Windows 7 Mixer
Windows 7 Mixer
Is it possible you have chrome turned down or muted?
-
21 Nov 2011 6:59 AM #9


Reply With Quote