4
我使用SoundManager2通過RTMP傳輸MP3音頻。問題是持續時間沒有生成,並且始終爲0SoundManager2 - 使用RTMP不顯示持續時間
var sound = soundManager.createSound({
id: 'soundid',
serverURL: 'rtmp://server/',
url: 'file.mp3',
autoLoad: true,
autoPlay: false,
onload: function() {
console.log("DURATION: ", this.duration);
},
whileplaying: function() {
console.log(this.duration);
},
volume: 100
}).play();
是否正在使用RTMP獲取持續時間?我試過durationEstimate
以及這也顯示0.