[英]jQuery audio loop with excess pause (Buzz plugin)
I use Buzz plugin for plaing audio on my page. 我使用Buzz插件在页面上显示音频。 I used loop function and add some samples for it Buzz audio plugin .
我使用了循环功能,并为其添加了一些示例Buzz音频插件 。 Every thing works fine: loop work and sample sounds, but I have a little pause beetwen repeating each sounds (samples was cuted without any peaces of silents).
一切正常:循环工作和采样声音,但是我在重复每个声音时有点停顿beetwen(采样被剪切,没有任何静默)。
How can I controll loop speed of "buzz" plugin, and delete pause beetwen repeating? 如何控制“嗡嗡声”插件的循环速度,并删除重复的暂停beetwen? Beetwen all samples have differents duration
Beetwen所有样本的持续时间各不相同
this.loop = function() {
if (!supported) {
return this;
}
this.sound.loop = "loop";
this.bind("ended.buzzloop", function() {
this.currentTime = 0;
this.play();
});
return this;
};
It's buzz plugin loop function 这是Buzz插件循环功能
It appears that the problem isn't with Buzz.js, but with mp3 audio . 看来问题不在于Buzz.js,而在于mp3 audio 。 Try using a different format (such as Ogg Vorbis).
尝试使用其他格式(例如Ogg Vorbis)。
UPDATE So, even after I switched to ogg vorbis, I'm still getting the gap between loops . 更新因此,即使我切换到ogg vorbis, 我仍然在循环之间留有空隙 。 It's starting to seem like an issue with Buzz.js.
Buzz.js似乎开始出现问题。
SC.get('/resolve', { url: mySound.track_url }, function(res, err) {
mySound.track = new buzz.sound(res.stream_url+'?client_id='+mySound.client_id);
mySound.track.bindOnce('canplay', function(e){
mySound.track.loop().play();
console.log('ready');
});
});
I think I'll end up trying the alternating-between-two-tracks approach. 我想我最终将尝试“两轨交替”方法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.