on Apache2018-04-27T01:33:51+00:00

서버 모듈 설치

1. Ubuntu/Debian Linux 의 경우

apxs 설치

# apt-get install apache2-threaded-dev

apxs를 이용해 모듈 빌드 및 설치

# apxs2 -aic mod_airbroad.c

아파치 서버 설정

# echo "AddHandler file-stream .flv .mp4" >> /etc/apache2/mods-available/airbroad.load

아파치 서버 재시작

# service apache2 restart

2. RedHat/CentOS/Fedora Linux 의 경우

apxs 설치

# yum install httpd-devel libtool

apxs를 이용해 모듈 빌드 및 설치

# apxs -aic mod_airbroad.c

아파치 서버 설정

# echo "AddHandler file-stream .flv .mp4" >> /etc/httpd/conf/httpd.conf

아파치 서버 재시작

# service httpd restart

웹사이트에 플레이어 임베드

사용하시는 웹서버의 DocumentRoot에 웹플레이어를 다운로드 받습니다.
HTML 태그를 이용하여 스트리밍이 작동하는지 테스트 할 수 있습니다.
아래 내용으로 test.html 파일을 작성합니다.

<div align="center">
<embed src="http://yoursiteaddress/player_beta.swf" type="application/x-shockwave-flash" width="1280" height="720" allowfullscreen="true" flashvars="media=http://yoursiteaddress/test.mp4"></embed>
</div>

비디오 업로드

여러 해상도의 비디오를 준비하셨으면, 아래 예제와 같이 파일명에 접미어를 붙여 업로드합니다.

test.mp4
test_540p.mp4
test_360p.mp4
test_240p.mp4

테스트

웹 브라우저를 열고 다음 주소를 입력합니다.
http://사이트주소/test.html