切換至 /usr/local/src,並下載 flv 的 apache 模組原始檔來做編譯的動作
#cd /usr/local/src
#wget http://people.apache.org/~pquerna/modules/mod_flvx.c
#apxs -i -a -x mod_flvx.c
備註:如果系統無 apxs 這個指令,需要執行下列指令安裝
#apt-get install apache2-prefork-dev
安裝完成後再執行
#apxs2 -i -a -x mod_flvx.c
執行完成後 Debian 會自動將模組載入,直接重啟 apache 即可
#/etc/init.d/apache2 restart
第2步驟
請準備好要播放的 flv 檔案跟 flv 的 player
如無 player 可從這下載
在 html 中加入以下程式碼
<embed src="player.swf" type="application/x-shockwave-flash"
allowscriptaccess="always" allowfullscreen="true" flashvars="file=test.flv"
width="480" height="390">
即可完成
沒有留言:
張貼留言