Quicktime 视频:隐藏控件并获取当前播放时间
对于我们的组织,我们需要让用户观看 .mov 文件,并且不允许他们跳过视频。最后,我还需要看到他们观看的视频时间 = 视频时长。
我阻止控件的想法是在洗涤器上浮动一个 div,这样它们就无法跳过视频。这是一个好方法吗?有没有办法获取当前的播放时间?
有更好的方法来实现这一点吗?
For our organization we need to have users watch a .mov file and not allow them to skip through the video. At the end, I also need to see that they video time they watched is = to the video duration.
My idea to block the controls was to just float a div over the scrubber so that they can't jump through the video. Is this a good way to do it? Is there a way to get the current play time?
Any better ways to implement this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
嵌入对象时,请将 controller 参数设置为 false:
为此,您需要将 autoplay 设置为 true,因为用户根本无法使用控制器关闭。
您可以在此处了解有关 QT 参数的更多信息。
至于跟踪观看时间,您将需要某种播放器来跟踪此类信息。我建议FlowPlayer。它是免费且易于使用的。另外,如果您最终使用 FlowPlayer,请点击此处是一个关于如何跟踪用户观看您的视频的时间的链接。
只是旁注,如果您可以控制所述视频的渲染,您应该使用另一种更多网络支持的视频类型,例如 H.264
When you embed the object, set the controller parameter to false:
In order to do this, you will need to set autoplay to true, because the user will not be able to control the video at all with the controller off.
You can learn more about QT parameters here.
As far as keeping track of the time watched, you will need some sort of player to keep track of that kind of information. I suggest FlowPlayer. It is free and easy to use. Also, if you do end up using FlowPlayer, here is a link on how to keep track of the time a user spends watching your video.
Just a sidenote, if you can control the rendering of said video, you should go with another more web-supported video type like H.264