WMV 파일 경우
오늘 wmv를 첨부할일이 있었는데 embed로 하니 파이어폭스에서 지원이 되지 않아서 다른방법을 찾다가 아래와 같은 방법을 찾았다.
1. 인터넷익스플로러인 경우
<!--[if IE]>
<object width="높이값" height="넓이값" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" standby="Loading Microsoft Windows Media Player components..." type="video/x-ms-wmv">
<param name="filename" value="mms://주소.wmv" />
<param name="Url" value="mms://주소.wmv" />
<param name="animationatstart" value="0" />
<param name="autostart" value="1" />
<param name="balance" value="0" />
<param name="currentmarker" value="0" />
<param name="currentPosition" value="0" />
<param name="displaymode" value="4" />
<param name="enablecontextmenu" value="0" />
<param name="enabled" value="1" />
<param name="fullscreen" value="0" />
<param name="invokeurls" value="1" />
<param name="playCount" value="10" />
<param name="rate" value="1" />
<param name="showcontrols" value="1" />
<param name="showstatusbar" value="1" />
<param name="stretchtofit" value="1" />
<param name="transparentatstart" value="1" />
<param name="captioningID" value="captions" />
<param name="displaybackcolor" value="0" />
</object>
<![endif]-->
2. 인터넷익스플로러가 아닌경우
<!--[if !IE]> <-->
<object type="video/x-ms-asf-plugin" data="mms://주소.wmv" width="넓이값" height="높이값"></object>
<!--> <![endif]-->
/* 퀵타임인 경우
<object width="160" height="144" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab>">
<param name="src" value="test.mov">
<param name="autoplay" value="true">
<param name="controller" value="false">
<embed src="sample.mov" width="160" height="144" autoplay="true" controller="false" pluginspage="http://www.apple.com/quicktime/download/"></embed>
</object>
플래시 경우
<object type="application/x-shockwave-flash" data="images/menu.swf" width="500" height="70">
<param name="movie" value="menu.swf" />
</object>
'xhtml' 카테고리의 다른 글
embed 동영상 태그 (0) | 2013.07.12 |
---|---|
js 롤오버 (0) | 2013.06.14 |
레이어 팝업 [클릭시 띄우기] (0) | 2013.05.14 |