Spark 视频播放器:seek() 用于本地播放

发布于 2024-11-15 13:01:16 字数 412 浏览 7 评论 0原文

我正在使用 Spark 视频组件在 AIR 应用程序中播放本地视频。根据其描述,使用seek方法并不能提供准确的定位:

playheadTime 属性可能不会 立即得到期望值 调用seek()之后。 对于 渐进式下载,你可以寻找 仅针对关键帧;因此,寻求 带你回到最初的时光 指定时间后的关键帧。

注意:流式传输时,始终会进行搜索 前往精确的指定时间 即使源 FLV 文件没有 那里有一个关键帧。

视频组件似乎将本地播放视为渐进式下载,使得搜索方法无法用于粒度搜索,因为它会捕捉到关键帧。有没有一种方法可以将本地播放视为流视频,以便从eek()方法获得粒度搜索能力?或者这个所需的功能是否需要不同的视频组件?

I am playing back local video in an AIR application using the Spark Video Component. Using the seek method does not provide accurate positioning as per its description:

The playheadTime property might not
have the expected value immediately
after you call seek(). For a
progressive download, you can seek
only to a keyframe; therefore, a seek
takes you to the time of the first
keyframe after the specified time.

Note: When streaming, a seek always
goes to the precise specified time
even if the source FLV file doesn't
have a keyframe there.

It appears that the video component treats local playback as a progressive download, making the seek method not usable for granular seeking because it snaps to keyframes. Is there a way to have local playback that is treated as streamed video to get the granular seeking ability from the seek() method? Or will this desired functionality require a different video component?

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

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

发布评论

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

评论(1

狼亦尘 2024-11-22 13:01:16

它不是视频播放组件,而是实际的媒体。当您通过流式视频寻求精确时间时,媒体服务器将在流中创建所需的关键帧。通过使用更多关键帧对视频进行编码,您可以提高搜索的准确性,但代价是文件大小(我认为这对您来说不是问题)

It is not the video playback component but the actual media. When you seek a precise time with streamed video, then the media server will create the required keyframe in the stream. By encoding your video with more keyframes you can increase the accuracy of the seek, but at the cost of the file size (which I assume isn't an issue for you)

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