<script type='text/javascript' src='../../Tools/mediaplayer-5.7-viral/jwplayer.js'></script>
<div id='mediaspace'>
</div>
<script type='text/javascript'>
jwplayer('mediaspace').setup({
'flashplayer': 'http://player.longtailvideo.com/player.swf',
'file': 'http://content4.longtailvideo.com/videos/flvplayer.flv',
'controlbar': 'bottom',
'width': '470',
'height': '320'
});
</script>
<input type="button" value="开始" onclick="document.getElementById('mediaspace').sendEvent('PLAY', 'true')" />
<input type="button" value="暂停" onclick="document.getElementById('mediaspace').sendEvent('PLAY', 'false')" />
<input type="button" value="停止" onclick="document.getElementById('mediaspace').sendEvent('STOP')" />如上面,我已经可以用JS控制播放了
那现在我要添加三个按钮<input type="button" value="取得状态" onclick="?" />
<input type="button" value="当前播放秒数" onclick="?" />
<input type="button" value="转到第30秒播放" onclick="?" />取得状态为:播放中,暂停中,已停止
取得播放秒数为得到当前播到第几秒
转到第30秒播放:就是转到指定秒数播放谢谢
解决方案 »
- Linq到底有什么优点?项目中到底应该不应该用它?
- 在用户控件中使用js的问题,Js压根不执行.请教一下,不是ID问题
- 删除图片
- visible='<%#Eval("fin_shenhe")>0?true:false; %>'这个错那了~我怎么看都看不出~
- 用javascript 如何取得Gridview里面某一个项的值呢?
- 生成临时文件的问题!!!
- 不重复排序(C#)中
- 大家好,问个mvc4 webapi 的问题 谢谢,请进
- 怎样访问数据库后将查询结果以xml传给客户端?
- 我用.ASP.NET做的网页.上传到什么样的主页空间都行吗.这个有没有要求啊.
- DebugSkill:SqlParameter
- 关于asp.net中的Seesion问题
http://blog.csdn.net/tomysea/article/details/6685553其实官方有详细的说明,API非常丰富,希望可以帮到你。
暂停: MediaPlayer.Pause()
定位: MediaPlayer.SetCurrentEntry(lWhichEntry)
MediaPlayer.Next()
MediaPlayer.Previous()
循环: MediaPlayer.PlayCount = 0
0:the clip plays repeatedly
1:once
停止: MediaPlayer.Stop()