TimedText는 좀 생소하고, SRT 자막 링크거는 것으로 설명합니다
보통은 SMI 자막을 많이 쓰기 때문에 Jwplayer로 링크하려면 SMI 자막을 SRT자막으로 변환해 주어야 합니다
아래 링크에서 변환 프로그램을 다운 받으세요
https://docs.google.com/uc?authuser=0&id=0By7lGrMEmOEaTEJHVGNCNFhPQTg&export=download
다운 받은 후 확장자 .jpg를 삭제하고 압축을 풀면 sub.exe와 vobsub.dll 파일이 생성됩니다
사용법은 간단합니다 프로그램 실행하고 smi 파일을 불러와서 Save As....누른 후
파일형식은 srt로 ,그리고 Unicode output에 체크해주면 됩니다
구글드라이브가 영상을 링크시키는거외는 다 막아버렸습니다
플레이어와 자막파일은 반드시 같은 계정에 올려야 합니다
<embed src="jwplayer 주소"
type="application/x-shockwave-flash" width="영상 가로크기" height="영상의 세로크기" allowfullscreen="true"
flashvars="file=https://www.googledrive.com/host/0B3l-5BlYUc0lMEp3TEl2aVdLV1E
&repeat=list&image=
&plugins=captions-2&captions.file=자막파일 주소
&captions.state=true&captions.color=글자 색상
&type=video&autostart=true&icons=false">
자막을 재생시키기 위한 기본적인 flashvars 설정은
plugins=captions-2 자막 플러그인을 사용한다는 의미
captions.file= 자막파일 주소
captions.state= 자막의 초기상태 on / off 기본값 true
captions.color= 폰트색상 기본값 #FFFFFF 흰색
색상을 변경하려면 색상코드표에서 맘에드는 색상을 선택하면 됩니다 ex) #FF0000 빨강
이외
captions.fontweight= 폰트를 굵게할때 기본값 normal
captions.fontstyle= 폰트 스타일 변경 기본값 normal
완성된 태그 예
<embed src="http://cfs.tistory.com/custom/blog/104/1044374/skin/images/player5.7.swf?"
type="application/x-shockwave-flash" width="960" height="565" allowfullscreen="true"
flashvars="file=https://www.googledrive.com/host/0By7lGrMEmOEaaWZMQ3ZsVnNSS28
&repeat=list&image=http://i.imgur.com/zwKvZr1.jpg
&plugins=captions-2&captions.file=http://cfs.tistory.com/custom/blog/104/1044374/skin/images/(15)%20Girl's%20Power%EF%BC%8FM-ON%20ver%2002.srt?=341484158
&captions.state=true&captions.color=#ADDFFF
&icons=false&type=video&autostart=false">
영상 예제
자막 on / off 를 선택할 수 있습니다
'플짤관련' 카테고리의 다른 글
JW PLAYER를 이용하여 유튜브영상 HD로 퍼오기 1편 (0) | 2014.06.06 |
---|---|
Jwplayer 목록형 플레이어 몇가지 플러그인 (2) | 2014.03.22 |
Jwplayer Image Rotator로 포토갤러리 만들기 (0) | 2014.01.11 |
JW PLAYER 목록형 플레이어 만들기 (14) | 2013.09.18 |
Jwplayer로 mp3 플레이어 만들기 (0) | 2013.06.23 |