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);
}
}]
}]
});
}
});