tanjuGMX
5 Dec 2010, 4:05 PM
I'm building a custom volume slider for a MP3 player. This works fine in Chrome browser. Unfortunately, this does not work on an actual iPhone. On an iPhone the volume slider is simply ignored.
Is there a better way to address this than with the media.dom.volume as outlined in the code below? Or is there no way to control the iPhone volume with HTML5?
volumeSlider = new Ext.form.Slider({
value: 0.99,
maxValue: 1,
listeners: {
dragend: function(c){
mp3Player.media.dom.volume = volumeSlider.getValue();
},
drag: function(c){
mp3Player.media.dom.volume = volumeSlider.getValue();
}
}
});
mp3Player = new Ext.Audio({
url : http://3208.nyc2.soundclick.com/freemp3/beatkings+mywayftmarkabyshodown.mp3
});
Is there a better way to address this than with the media.dom.volume as outlined in the code below? Or is there no way to control the iPhone volume with HTML5?
volumeSlider = new Ext.form.Slider({
value: 0.99,
maxValue: 1,
listeners: {
dragend: function(c){
mp3Player.media.dom.volume = volumeSlider.getValue();
},
drag: function(c){
mp3Player.media.dom.volume = volumeSlider.getValue();
}
}
});
mp3Player = new Ext.Audio({
url : http://3208.nyc2.soundclick.com/freemp3/beatkings+mywayftmarkabyshodown.mp3
});