Apple HTTP Live Streaming 中的实时流元数据读取

发布于 2024-12-16 17:01:31 字数 250 浏览 6 评论 0原文

在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

紙鸢 2024-12-23 17:01:31

是的,元数据由 id3taggenerator 生成到文件中,并使用 mediafilesegmenter 嵌入到视频中,两者都包含在 HTTP 直播工具 下载。示例:

id3taggenerator -o camera1.id3 -text "Dolly camera"
id3taggenerator -o camera2.id3 -text "Tracking camera"

您可以嵌入多种元数据,包括二进制对象。有关详细信息,请参阅手册页。现在我们需要从“元宏文件”引用生成的文件。这是一个纯文本文件,具有以下格式:

60 id3 camera1.id3
120 id3 camera2.id3

第一个数字是自您要插入通知的视频开始以来经过的秒数。我不太记得 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 using mediafilesegmenter, both are included in the HTTP Live Streaming Tools download. Example:

id3taggenerator -o camera1.id3 -text "Dolly camera"
id3taggenerator -o camera2.id3 -text "Tracking camera"

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:

60 id3 camera1.id3
120 id3 camera2.id3

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/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文