根据需要为 QTMovie 提供数据

发布于 2024-08-04 08:29:04 字数 345 浏览 10 评论 0原文

我知道,如果我想为 QTMovie 提供来自任意源的数据,因为需要,我可能必须处理 QTDataReference 类,但不幸的是,我对类似内容的经验仅限于 iPhone 上音频缓冲区的音频数据回调。

如果我用一些 NSMutableData 初始化 QTDataReference,我如何知道它何时需要更多数据,此外,我如何“清除”已播放的电影数据并在用户返回时再次提供它(我希望他们能够)?

基本上,我想要提供的电影数据最终来自一组文件(实际上只是一个分割的电影文件),这些文件在播放过程中依次可用。这部分至关重要。

任何让我朝着正确方向前进的人都可以获得第一个 Mac OS X Usenet 电影流媒体的测试版访问权;)

I understand that if I wanted to provide a QTMovie with data from an arbitrary source as it is needed I probably have to deal with the QTDataReference class, but unfortunately my experience with anything similar is limited to an audio data callback with Audio Buffers on the iPhone.

If I initialized the QTDataReference with some NSMutableData, how would I know when it needs more data and furthermore, how would I "clear" already played movie data and provide it again when the user seeks back (I want them to be able to)?

Basically the movie data I want to provide would in the end come from a set of files (which are really just one movie file split up), which become available sequentially during playback. This part is crucial.

Anybody who gets me going in the right direction can get beta access to the first Mac OS X Usenet movie streamer ;)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

油饼 2024-08-11 08:29:04

您可能无法使用 QTKit 来做到这一点。从 QuickTime 概述并从那里开始。

我想到的第一个想法是创建一个 QuickTime 影片,指示 QuickTime 查找您希望下载的文件(甚至直接查找其远程 URL)以获取其媒体,然后选择 QuickTime Player/QTMovieView 并希望 QuickTime 支持渐进式下载补丁来克服任何困难。

You likely can't do this using QTKit. Start with the QuickTime Overview and go from there.

The first idea that occurs to me is creating a QuickTime movie that directs QuickTime to look to the files you expect to download (or even to look directly to their remote URLs) for its media, then siccing QuickTime Player/QTMovieView on it and hoping that QuickTime's support for progressive download patches over any rough spots.

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