在带有字幕的浏览器中对Window Media Player进行编程 [英] Programming Window Media Player in the Browser with Captioning

查看:68
本文介绍了在带有字幕的浏览器中对Window Media Player进行编程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

我正在使用与以下教程不同的教程: http://www.webaim.org/techniques/captions/windows/

I am following a different tutorial from: http://www.webaim.org/techniques/captions/windows/

它没有提到对javascript的任何需求.我的视频正在浏览器中播放,但字幕却没有.我刚得到一个黑匣子.我希望视频在带字幕的浏览器中播放.可以提出一些建议吗?

It doesn't mention any need for javascript. My video is playing in the browser but the captions are not. I just get a black box. I'd like the video to play in the browser with captioning.  Can some make a suggestion:

http://www.webaim.org/techniques/captions/windows/

<!DOCTYPE html PUBLIC-//W3C//DTD HTML 4.01 Transitional//EN">
< html>
< head>
< title>我的办公室</title>
< link rel ="stylesheet" type ="text/css" href ="style.css"/>
< meta http-equiv ="Content-Type "content =" text/html; charset = Windows-1252>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>My OFFICE</title>
<link rel="stylesheet" type="text/css" href="style.css" />
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">

</head>
< style>

</head>
<style>


div.headerTitle {
颜色:棕色;
字体大小:1.7em;
字体重量:粗体;
text-align:居中;
浮动:居中;
}


div.headerTitle {
color: brown;
font-size: 1.7em;
font-weight: bold;
text-align: center;
float: center;
}

 

</style>

</style>

< body>
<表格边框="0" cellpadding ="0" cellspacing ="0" bgcolor ="white" width ="480" height ="20px">
< tr>
< td valign ="top" align ="center" width ="200" class ="mtitle">

<body>
<table border="0" cellpadding="0" cellspacing="0" bgcolor="white" width="480" height="20px">
<tr>
<td valign="top" align="center" width="200" class="mtitle">

</td>
< div class ="headerTitle">
我的虚拟漫游
</div>

</td>
<div class="headerTitle">
My Virtual Tour
</div>


< tr>< td align ="center">
<对象id =玩家" width ="406" height ="333"
classid =' CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6'


<tr><td align="center">
<OBJECT id='Player' width="406" height="333"
classid='CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6'

codebase ='https://activex.microsoft.com/activex/controls/mplayer/zh-CN/nsmp2inf.cab#Version=5,1,52,701'
standby ='正在加载Microsoft Windows Media Player组件. ..'type ='application/x-oleobject'>

codebase='https://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701'
standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobject'>


<参数名称="URL"值=" http://www.mywebsite.com/电影/MovieWithCap.wmv >

< param name ='autoStart'value ="true">
< param name ='usecaptions'value ="True">
< param name ='loop'值="false">
< param name ='showcontrols'value ="false">

<param name='autoStart' value="true">
<param name='usecaptions' value="True">
<param name='loop' value="false">
<param name='showcontrols' value="false">

<参数名称="uimode"值=完整">
<参数名称="captioningID"值=标题">
<参数名称="SAMIFileName"值=" http://www.mywebsite.com/Movies/MovieWithCap.smi ">
</object>
< div id =标题" style ="background-color:black; color:white; width:406px; height:70px">
</div>

<param name="uimode" value="full">
<param name="captioningID" value="captions">
<param name="SAMIFileName" value="http://www.mywebsite.com/Movies/MovieWithCap.smi">
</object>
<div id="captions" style="background-color:black; color:white; width:406px; height:70px">
</div>

</td></tr>

</td></tr>

 


</table>
</body>
</html>


</table>
</body>
</html>

推荐答案


这篇关于在带有字幕的浏览器中对Window Media Player进行编程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆