Adobe™ Flash™ Ajax Video (FAVideo) 組件是一個輕量級的,開源的用 Ajax+Flash 來播放flv的組件。它可以運用在 Ajax 的程序裡。它可以使在 Javascript 裡控制 Video 像在 Flash 那樣容易。
<html>
<head>
<title>Various ways to work with FAVideo</title>
<script src="AC_RunActiveContent.js" type="text/javascript"></script>
<script src="FAVideo.js" type="text/javascript"></script>
</head>
<body onLoad="">
<div id="divOne"></div>
<script type="text/javascript">
playerOne = new FAVideo(
"divOne", "demo_video.flv",0,0,{ autoLoad:true, autoPlay:true });
</script>
<script>
playerOne.addEventListener("playheadUpdate",this,myHandler);
playerOne.removeEventListener("playheadUpdate",this,myHandler);
function myHandler() {
//alert("eh");
}
</script>
</body>
</html>
運行截圖:
官方詳細說明地址(英文):
http://labs.adobe.com/wiki/index.php/Flash-Ajax_Video_Component