2
我有記錄的口語文本,我希望允許用戶在記錄中的特定時間點開始音頻記錄,例如,在開始時間之後12.5秒。使用下面的示例代碼,我該如何做到這一點?如何使用setCurrentTime()設置開始時間偏移量()
<audio id="player2" src="/player/media/AirReview-Landmarks-02-ChasingCorporate.mp3" type="audio/mp3" controls="controls" preload="preload">
</audio>
<script>
var player = $('audio,video').mediaelementplayer(
{
// the order of controls you want on the control bar (and other plugins below)
features: ['playpause','progress','current','duration','tracks','volume','fullscreen'],
audioWidth: 300,
// enables Flash and Silverlight to resize to content size
enableAutosize: true,
startVolume: 0.7,
success: function(player, node) {
$('#' + node.id + '-mode').html('mode: ' + player.pluginType);
}
}
);
</script>