弹性4> Spark.components.VideoPlayer >如何切换码率?

发布于 2024-10-10 00:54:25 字数 1018 浏览 0 评论 0原文

VideoPlayer(也可能是 VideoDisplay)组件能够以某种方式自动在给定的列表中选择最佳质量的视频。示例如下:

http://help.adobe.com/en_US/FlashPlatform/beta/reference/actionscript/3/spark/components/mediaClasses/DynamicStreamingVideoItem.html#includeExamplesSummary

我找不到以下问题的答案。

假设流式传输录制视频的服务器能够在具有不同比特率的相同视频之间进行切换,并从其时间线内的任何点进行流式传输:

  1. 此组件内的带宽测试/计算是否仅在视频开始播放之前完成,在它在哪一点选择最好的视频源并且从不使用其他视频源?或者,它是否连续或定期执行其带宽测试,并在播放过程中相应地在视频源之间切换?

  2. 它是否支持通过代码设置视频源,并且可以关闭视频源之间的自动切换(如果我想以某些按钮/下拉列表或类似的形式向用户提供此功能)?我知道可以设置首选视频源,但这仅意味着将首先测试/尝试该视频源。

  3. 除了Adobe提供的媒体服务器之外,该组件还可以使用哪些媒体服务器来实现同一视频不同质量之间的自动和手动切换?


显然,我想创建一个足够智能的播放器,可以在不同质量的视频之间自动切换,并且支持与播放哪个源相关的手动指令 - 都不会中断播放,或者至少不会重新启动它(次要)中断是可以接受的)。此外,在缓冲了足够的数据之后(当然),播放需要能够在视频中的任何给定点开始,但最重要的是,我希望能够在缓冲之外开始播放。如果有人知道的话,关于快进的一两个注释不会有什么坏处。

感谢您抽出时间。

The VideoPlayer (possibly VideoDisplay also) component is capable of somehow automatically picking the best quality video on the list it's given. An example is here:

http://help.adobe.com/en_US/FlashPlatform/beta/reference/actionscript/3/spark/components/mediaClasses/DynamicStreamingVideoItem.html#includeExamplesSummary

I cannot find the answers to below questions.

Assuming that the server that streams recorded videos is capable of switching across same videos with different bit rates and streaming them from any point within their timelines:

  1. Is the bandwidth test/calculation within this component only done before the video starts playing, at which point it picks the best video source and never uses the other ones? Or, does it continuously or periodically execute its bandwidth tests and does it accordingly switch between video sources during the playback?

  2. Does it support setting the video source through code and can its automatic switching between video sources be turned off (in case I want to provide this functionality to the user in the form of some button/dropdown or similar)? I know that the preferred video source can be set, but this only means that that video source will be tested/attempted first.

  3. What other media servers can be used with this component, besides the one provided by Adobe, to achieve automated and manual switching between different quality of same video?


Obviously, I'd like to create a player that is smart enough to automatically switch between different quality of videos, and that will support manual instructions related to which source to play - both without interrupting the playback, or at least without restarting it (minor interruptions acceptable). Also, the playback needs to be able to start at any given point within the video, after enough data has been buffered (of course), but most importantly, I want to be able to start the playback beyond what's buffered. A note or two about fast-forwarding is not going to hurt, if anyone knows anything.

Thank you for your time.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文