0
我遇到了很大的麻煩,請問任何人都可以幫助我..?視頻播放結束後返回第一幀
我的問題是我想在播放外部視頻後將我的Flash Player返回到第一幀。
下面的腳本用於我的flash播放器,
function checkTime(flv)
{
var _loc2 = flv.playheadTime;
var _loc3 = Math.floor(_loc2/60);
var _loc1 = Math.floor(_loc2 % 60);
if (_loc1 < 10)
{
_loc1 = "0" + _loc1;
} // end if
current_time.text = _loc3 + ":" + _loc1;
} // End of the function
flv.pauseButton = pause_btn;
flv.playButton = play_btn;
flv.FLVPlayback.align = center;
var time_interval = setInterval(checkTime, 500, flv);
ffwd_btn.onRelease = function()
{
flv.seek(flv.playheadTime + 2);
};
rewind_btn.onRelease = function()
{
flv.seek(flv.playheadTime - 5);
};
mute_btn.onRelease = function()
{
if (videoSound.getVolume() == 0)
{
videoSound.start();
videoSound.setVolume(volLevel);
}
else
{
volLevel = _root.videoSound.getVolume();
videoSound.setVolume(0);
videoSound.stop();
} // end else if
};
var videoSound = new Sound(this);
videoSound.setVolume(100);
flv.contentPath = flvurl;
fl.video.FLVPlayback.align = center;
如果有誰知道,請修改腳本,並給予回覆, 我很期待您的答覆..
感謝 保羅
FindZen感謝很多,它的作品呵呵!!!!!但仍然有一個問題「NaNa」在視頻完成後顯示時間軸,有什麼方法可以顯示其00:00 ..? – Paul 2010-11-19 19:25:48