看看这个吧,我被人骂过。
http://www.delphibbs.com/delphibbs/dispq.asp?lid=1076799
我觉得JSP与ActiveX没有什么关系。只有html也一样使用ActiveX。
这个是调用MediaPlayer,可以播放很多文件。
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> Newdo
cument </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>
<BODY>
<object align=middle class=OBJECT
classid=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95 height=380
id=MediaPlayer width=500>
<param name="ShowStatusBar" value="-1">
<param name="Filename" value="d:/P17.avi">
<embed type=application/x-oleobject
codebase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701
flename=mp src=mms://61.177.56.226/worldtest width=500
height=380> </embed> </object>
</BODY>
</HTML>
这个是调用RealPlayer。
<OBJECT classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA height=240 id=RP1 width=322>
<param name="_ExtentX" value="8520">
<param name="_ExtentY" value="6350">
<param name="AUTOSTART" value="-1">
<param name="SHUFFLE" value="0">
<param name="PREFETCH" value="0">
<param name="NOLABELS" value="-1">
<param name="SRC" value="d:/01.rm">
<param name="CONTROLS" value="Imagewindow">
<param name="CONSOLE" value="clip1">
<param name="LOOP" value="0">
<param name="NUMLOOP" value="0">
<param name="CENTER" value="0">
<param name="MAINTAINASPECT" value="0">
<param name="BACKGROUNDCOLOR" value="#000000"><embed src="/tv/001.rm" width="194" height="144" controls="ImageWindow" autostart="true" console="Clip1" nolabels="true" type="audio/x-pn-realaudio-plugin"></OBJECT>
<OBJECT classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA height=32 id=RP2 width=331>
<param name="_ExtentX" value="8546">
<param name="_ExtentY" value="847">
<param name="AUTOSTART" value="-1">
<param name="SHUFFLE" value="0">
<param name="PREFETCH" value="0">
<param name="NOLABELS" value="-1">
<param name="SRC" value="d:/01.rm">
<param name="CONTROLS" value="ControlPanel">
<param name="CONSOLE" value="clip1">
<param name="LOOP" value="0">
<param name="NUMLOOP" value="0">
<param name="CENTER" value="0">
<param name="MAINTAINASPECT" value="0">
<param name="BACKGROUNDCOLOR" value="#000000"><embed src="/tv/001.rm" width="204" height="30" controls="ControlPanel" autostart="true" console="Clip1" nolabels="true" type="audio/x-pn-realaudio-plugin"></OBJECT>