如何从网络服务器流式传输/允许跳过 OGV 文件?

发布于 2024-12-22 05:36:24 字数 407 浏览 1 评论 0原文

我知道这可能有点通用,所以任何帮助或指导都会有所帮助。情况是这样的:

我正在为 Firefox 编写一个插件,将 khanacademy.org 视频替换为“本地”版本,以便在用户带宽少得多或远离 khanacademy 服务器(例如非洲)的情况下使用。扩展部分相对简单。它用 HTML 5 标记替换视频,并指向本地服务器上的 .ogv 文件。

理想情况下,我可以设置一个轻量级服务器,允许用户“流式传输”视频,这样他们就可以在视频播放中跳转,而不必等待整个文件下载。我已经将 nginx 设置为将视频文件作为静态文件提供服务,并且它们似乎是逐步下载的,但是如果我跳转到视频的另一部分,它就会停止播放并且视频似乎会中断。

所以我的问题归结为是否有一种方法可以设置允许跳过视频的服务器(希望易于设置并在 Ubuntu 上运行)?

I know this may be a bit generic, so any help or direction would be helpful. Here's the situation:

I'm writing an addon for Firefox to swap out khanacademy.org videos for "local" versions for use in situations where the user has much less bandwidth or is far from the khanacademy servers (think Africa). The extension part is relatively straightforward. It replaces the video with an HTML 5 tag and points to a .ogv file on a local server.

Ideally I could set up a lightweight server that would allow the user to "stream" the video so they can jump around in video playback and not have to wait for the entire file to download. I've set up nginx to serve the video files as static files, and they appear to download progressively, however if I jump to another part of the video, it stops playing and the video appears to break.

So my question boils down to is there a way to set up a server (hopefully easy to setup and runs on Ubuntu) that'll allow for skipping around the video?

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

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

发布评论

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

评论(1

骷髅 2024-12-29 05:36:24

Flumotion 能够传输 .ogv 文件并允许查找播放期间的任意位置。我通过运行 sudo apt-get install Flumotion 在 Ubuntu 10.04 LTS 上安装了它,并且能够使上述场景正常工作。

Flumotion is able to stream .ogv files and allows seeking to arbitrary positions during playback. I installed it on Ubuntu 10.04 LTS by running sudo apt-get install flumotion and was able to get the above scenario working.

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