speed: function(th) { var self = this,
speed = $(th).data('speed');
self.Audio.playbackRate = speed; console.log("speed="+speed)
}speed 有0.5 , 0.8 , 1 幾種速度,在ios上沒有問題,但是我的安卓手機卻沒有反應,不知是什么原因造成的?---------------------- 測試 -------------------------------<audio id="audio" preload src="http://game.163.com/weixin/gfxm3_gc/images/bg.mp3"></audio>
<button class="btn1">慢速</button> <button class="btn2">正常</button>
<button class="btn3">播放</button>$(".btn1").click(function() {
var audio = $("#audio")[0];
audio.playbackRate = 0.5;
alert(audio.playbackRate);})
$(".btn2").click(function() {
var audio = $("#audio")[0];
audio.playbackRate = 1;
alert(audio.playbackRate);})
$(".btn3").click(function() {
var audio = $("#audio")[0];
audio.play();})在安卓手機的微信測試,發現屬性是賦上去的,但是音頻的速度就是沒有變化?demo在這里http://jsbin.com/juhoyeyega/e...
html5 用audio的playbackRate屬性控制播放速度在安卓手機不起作用?
PIPIONE
2018-09-14 18:09:13