[英]loop flv inside flash
我是Flash的新手,我需要將flv插入新的Flash項目中,並且希望該視頻不間斷播放。
謝謝
這很有趣,但是如果我使用較小的視頻,則視頻正在循環播放...
如果您使用的是FLVPlayback組件,則循環播放視頻的代碼應如下所示:
import fl.video.VideoEvent;
/**
* Your code where you set the source and other properties of the FLVPlayback component
*/
//Add an event listener to the COMPLETE event, so you will know when the video reached the last frame
flvComp.addEventListener(VideoEvent.COMPLETE, loopVideo);
//Rewind and start playing the video again
function loopVideo(event:VideoEvent):void
{
flvComp.autoRewind = true;
flvComp.play();
};
希望對您有幫助,祝您好運Rob
這是一個帶有循環flv的示例 ,您幾乎只需要NetConnection
, NetStream
和Video
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.