the value for SAMIFileName must be a .smi file. *.lrc file or others do not work here.
If .smi files located at the same path with media files, then no need to specify the parameter of SAMIFileName. WMP will find it automatically.
Sometime, the captions will not display if the .smi file has wrong encoding mode.
Code
<object id="media" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" type="application/x-oleobject" standby="Loading" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" height="0" width="0">
<param name="URL" value="http://210.51.6.45/go/musichigh/bymyside.mp3">
<param name="AutoStart" value="true">
<param name="captioningID" value="CapText">
<param name="SAMIFileName" value="http://210.51.6.45/go/musichigh/bymyside.smi"> <!-- http://210.51.6.45/go/musichigh/bymyside.lrc does Not work here. -->
</object>
<div id="CapText">sss</div>
Reference
- ClosedCaption.SAMIFileName
http://windowssdk.msdn.microsoft.com/library/default.asp?url=/library/en-us/wmplay10/mmp_sdk/closedcaptionsamifilename.asp
- 文章信息
- 版权声明: 本文可以任意转载,转载时请务必以超链接形式标明文章原始出处和作者信息。
- 原文出处: http://www.aiview.com/
- 写于: 2006-03-18 [Edit]
- 作者: Alex (email &msn)

- 标签 Tags: lrc (1), Media Player (1), subtitle (1)


