【发布时间】:2011-09-30 04:24:43
【问题描述】:
我有语音文本的录音,我希望允许用户在录音中的特定时间点开始录音,例如开始时间后 12.5 秒。使用下面的示例代码,我怎样才能做到这一点?
<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>
【问题讨论】:
标签: mediaelement.js