파폭에서 동영상 제어
Posted: 2005 02 17 13:55 52
간단히 play, pause, stop 버튼만 따로 이미지버튼으로 처리하려 합니다.
아래와 같이 소스를 작성했더니 파폭에서는 작동안하네요.
동영상 강좌사이트 같은 기능은 필요없고, 자바스크립트로 간단한 기본 버튼 기능만
구현하려하는데 무엇이 문제일까요...
<OBJECT Name=Player ID="mediaPlayer" WIDTH="302" HEIGHT="232" CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" CODEBASE="http://activex.microsoft.com/activex/co ... 5,1,52,701" STANDBY="Loading Microsoft Windows Media Player components..." TYPE="application/x-oleobject" style="background:url('/images/cafe/cafe_gallery_fashion05.gif');">
<PARAM NAME="fileName" VALUE="http://www.playstation.jp/ch/cm/asx/cm_gt4battle2.asx">
<PARAM NAME="animationatStart" VALUE="0">
<PARAM NAME="transparentatStart" VALUE="true">
<PARAM NAME="autoStart" VALUE="0">
<PARAM NAME="showControls" VALUE="0">
<param name="ShowStatusBar" value="0">
<embed Name=Player src="http://www.playstation.jp/ch/cm/asx/cm_gt4battle2.asx" width=302 height=230 autostart="0" showcontrols="1"></embed>
</OBJECT>
<img src="/images/cafe/btn_play.gif" border=0 hspace=0 vspace=0 onClick="javascript: document.Player.play();" style="cursor: pointer;">
<img src="/images/cafe/btn_pause.gif" border=0 hspace=0 vspace=0 onClick="document.Player.pause();" style="cursor: pointer;">
<img src="/images/cafe/btn_stop.gif" border=0 hspace=0 vspace=0 onClick="document.Player.stop();" style="cursor: pointer;">
아래와 같이 소스를 작성했더니 파폭에서는 작동안하네요.
동영상 강좌사이트 같은 기능은 필요없고, 자바스크립트로 간단한 기본 버튼 기능만
구현하려하는데 무엇이 문제일까요...
<OBJECT Name=Player ID="mediaPlayer" WIDTH="302" HEIGHT="232" CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" CODEBASE="http://activex.microsoft.com/activex/co ... 5,1,52,701" STANDBY="Loading Microsoft Windows Media Player components..." TYPE="application/x-oleobject" style="background:url('/images/cafe/cafe_gallery_fashion05.gif');">
<PARAM NAME="fileName" VALUE="http://www.playstation.jp/ch/cm/asx/cm_gt4battle2.asx">
<PARAM NAME="animationatStart" VALUE="0">
<PARAM NAME="transparentatStart" VALUE="true">
<PARAM NAME="autoStart" VALUE="0">
<PARAM NAME="showControls" VALUE="0">
<param name="ShowStatusBar" value="0">
<embed Name=Player src="http://www.playstation.jp/ch/cm/asx/cm_gt4battle2.asx" width=302 height=230 autostart="0" showcontrols="1"></embed>
</OBJECT>
<img src="/images/cafe/btn_play.gif" border=0 hspace=0 vspace=0 onClick="javascript: document.Player.play();" style="cursor: pointer;">
<img src="/images/cafe/btn_pause.gif" border=0 hspace=0 vspace=0 onClick="document.Player.pause();" style="cursor: pointer;">
<img src="/images/cafe/btn_stop.gif" border=0 hspace=0 vspace=0 onClick="document.Player.stop();" style="cursor: pointer;">