2014. 5. 25. 16:15

네 안녕하세요?

지난jwplayer 제작강좌에 그냥 참고될만한 글을 쓰겠습니다(3.16 버전 기준)


일단 jwplayer 태그가 대충 이런식입니다


<embed width="가로크기" height="세로크기" 
flashvars="config=config.xml 파일주소
&file=playlist.xml 파일주소"
src="http://share.dnip.co.kr/Files/Flash/Player/jw.swf"
type="application/x-shockwave-flash" autostart="true"/>

근데 여기서 config.xml이랑 playlist.xml 파일을 합할수 있습니다
바로 config.xml 파일에 다음과 같이 추가해주면 되는데요..

<file>playlist.xml 파일주소</file>

예제를 보자면

<config>
<allowscriptaccess>always</allowscriptaccess>
<allownetworking>all</allownetworking>
<allowfullscreen>false</allowfullscreen>
<file>playlist.xml 파일주소</file>
<autostart>true</autostart>
<repeat>always</repeat>
<shuffle>true</shuffle>
<icons>false</icons>
<volume>100</volume>
<linktarget>_top</linktarget>
<displayheight>0</displayheight>
<thumbsinplaylist>false</thumbsinplaylist>
<showeq>false</showeq>
<backcolor>0x5868A7</backcolor>
<frontcolor>0xB5DFEF</frontcolor>
<lightcolor>0x0000FF</lightcolor>
<overstretch>false</overstretch>
<usefullscreen>true</usefullscreen>
</config>

대충 위와같이 하면 되는겁니다
이렇게 설정하면 태그는 다음과 같이 줄어들게 됩니다
<embed width="가로크기" height="세로크기"
flashvars="config=config.xml 파일주소" src="http://share.dnip.co.kr/Files/Flash/Player/jw.swf"
type="application/x-shockwave-flash" autostart="true"/>


어때요, 정말 쉽죠?
 

by 死^死=254

Posted by 하늘바라KSND