什么“时间表”? Google/Arcade Fire 视频实验中是否引用了该技术?
在 http://www.thewildernessdowntown.com/ 上的非常酷的视频中,这里到底做了什么让所有视频/活动与音频完美同步?
我无法找到有关通过 HTML5 实际上可以进行哪些类型的同步的详细信息。我想将一些视频、音轨和 HTML 覆盖同步在一起,我想知道获得可靠的时间线(客户端会丢帧)的最佳方法是什么。
In the really cool video at http://www.thewildernessdowntown.com/, what exactly is being done here to keep all the videos/activity perfectly synchronized to the audio?
I'm having trouble finding good details on exactly what kinds of syncing are actually possible via HTML5. I would like to synchronize some videos, audio tracks, and HTML overlays together, and I'm wondering what the best approach is for getting a solid timeline that will drop frames, client-side.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我猜它是 HTML5 和 Javascript 中的。在 HTML5 中,您可以使用所谓的“提示点”来触发某些事件。基本上,您会说“在视频中的这个时间戳,触发此事件”。在我工作的地方,这些提示点可以作为元数据嵌入到媒体文件中,并在解码时读取。这是一个繁重的方法,但如果您有时间和工具,也是可行的。
但是,对于大多数 Web 应用程序,我建议使用 Javascript,特别是此处的库(cuepoint.js;更多字幕)或此处(popcorn.js)。两者都可能对您的应用程序有用。
在常规 HTML5 中,有一个用于指定提示点数据的规范,但在不同的浏览器和环境中该规范仍在不断变化和 YMMV。
I am guessing its in HTML5 and Javascript. In HTML5, you can use what are called "cuepoints" to trigger certain events. Basically, you say something like "at this timestamp in the video, trigger this event". At my place of employment, these cuepoints can be embedded as metadata in the media file, and read as they are decoded. This is a heavy approach, but could be doable if you had the time and the tools.
However, for most web applications, I would suggest using Javascript, specifically the libraries here(cuepoint.js; more for subtitles) or here(popcorn.js). Either might come in handy for your application.
In Regular HTML5, there is a spec for specifying cuepoint data, but that is still in flux and YMMV in different browsers and environments.