做了一个个人网站,想实现音乐播放器功能,而且想用火狐浏览器使用,求方法!
急求,如果不能具体,简单说说思路也行,多谢了! 学习。
[解决办法]
顶,菜鸟求学
[解决办法]
JavaSound 不就很好用吗
[解决办法]
var audioElement = document.createElement('audio');
audioElement.setAttribute('src', 'loading.ogg');
audioElement.play();
audioElement.src;
audioElement.duration;
var audioElement = document.createElement('audio');
audioElement.setAttribute('src', 'Mogwai2009-04-29_acidjack_t16.ogg');
audioElement.load()
audioElement.addEventListener("load", function() {
audioElement.play();
$(".duration span").html(audioElement.duration);
$(".filename span").html(audioElement.src);
}, true);
audioElement.pause();
audioElement.volume=0;
audioElement.currentTime=35;
audioElement.play();