我在找没有热气的视频。
这是我的页面:
<html><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="flowplayer-3.2.13.min.js"></script>
<title>Flowplayer test</title>
</head><body>
<a style="display:block;width:640px;height:360px" id="player"></a>
<script>
flowplayer("player","flowplayer/flowplayer-3.2.18.swf",{
clip: {url:'sp/gailun640x360.mp4'}});
function vgoto(val) {$f(0).seek(val);}
</script>
<a href="javascript:vgoto(0);">0s</a>
<a href="javascript:vgoto(10);">10s</a>
<a href="javascript:vgoto(20);">20s</a>
<a href="javascript:vgoto(30);">30s</a>
<a href="javascript:vgoto(40);">40s</a>
...
<a href="javascript:vgoto(100);">100s</a>
</body></html>当我点击" 10s“并寻找视频到10s时,视频时间就变成了7.04s,
然后我想要20多岁,它变成了17.04,
依此类推,比如:
30s -> 20.08
40s -> 30.08
50s -> 40.08
60s -> 56.52
70s -> 66.52
80s -> 76.52
90s -> 86.52
100s -> 90.92谢谢你的帮助。
发布于 2014-05-21 11:46:30
问题是,flowplayer只能寻求关键帧,这样才能寻找到任何秒,您需要的关键帧为每一秒。这很可能意味着,当视频上传时,您需要使用ffmpeg对视频进行重新编码,这些视频配置为每秒强制使用关键帧。
https://stackoverflow.com/questions/23755956
复制相似问题