Apple HTTP Live Streaming 中的实时流元数据读取
在 Flash 世界中,存在表示实时流连接和流(NetConnection 和 NetStream)的对象的概念。通过 Flash API,这些对象可用于将文本元数据注入实时流 (NetStream.send())。然后,可以使用 ActionScript 代码中的侦听器在 Flash 查看应用程序的查看端侦听此数据。您可以通过此方法通过视频流传递函数调用,并监听它们并在客户端执行它们。
Apple HTTP Live Streaming 领域中是否存在这个概念?
In the Flash world there is the concept of objects representing a live streaming connection and stream (NetConnection and NetStream). Though the Flash API these objects can be used to inject text metadata into a live stream (NetStream.send()). This data can then be listened for at the viewing end in a Flash viewing application with listeners in ActionScript code. You could pass function calls through a video stream via this and listen for them and execute them on the client end.
Does this concept exist in the Apple HTTP Live Streaming realm?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,元数据由
id3taggenerator
生成到文件中,并使用mediafilesegmenter
嵌入到视频中,两者都包含在 HTTP 直播工具 下载。示例:您可以嵌入多种元数据,包括二进制对象。有关详细信息,请参阅手册页。现在我们需要从“元宏文件”引用生成的文件。这是一个纯文本文件,具有以下格式:
第一个数字是自您要插入通知的视频开始以来经过的秒数。我不太记得 mediafilesegmenter 命令了,你至少必须传递宏文件、索引和视频文件。
生成的视频包含由 MPMoviePlayerController 作为通知发布的元数据。有关详细信息,请参阅此页面:http ://jmacmullin.wordpress.com/2010/11/03/adding-meta-data-to-video-in-ios/
Yes, the metadata is generated to a file by the
id3taggenerator
, and embedded on video usingmediafilesegmenter
, both are included in the HTTP Live Streaming Tools download. Example:There are several kinds of metadata you can embed, including binary objects. Refer to the man page for details. Now we need to reference the generated file from a "meta macro-file". This is a plain text file with the following format:
The first number is seconds elapsed since the beginning of the video where you want to insert the notification. I don't remember the mediafilesegmenter command exactly, you have to pass the macro file, the index, and the video file at least.
The resulting video contains metadata that is posted by the
MPMoviePlayerController
as notifications. See this page for details: http://jmacmullin.wordpress.com/2010/11/03/adding-meta-data-to-video-in-ios/