返回介绍

DeliveryHDS

发布于 2020-11-26 08:54:15 字数 2219 浏览 1358 评论 0 收藏 0

HDS指Adobe的Http Dynamic Stream,和Apple的HLS类似。

HDS规范参考:http://www.adobe.com/devnet/hds.html

Build

编译SRS时可以打开或者关闭HDS,详细参考:Build

./configure --with-hds

Player

Adobe的HDS可以在Flash播放器中,使用OSMF播放器打开。

输入地址:http://ossrs.net:8081/live/livestream.f4m

HDS Config

conf/full.conf中hds.srs.com是HDS的配置实例:

vhost __defaultVhost__ {
    hds {
        # whether hds enabled
        # default: off
        enabled         on;
        # the hds fragment in seconds.
        # default: 10
        hds_fragment    10;
        # the hds window in seconds, erase the segment when exceed the window.
        # default: 60
        hds_window      60;
        # the path to store the hds files.
        # default: ./objs/nginx/html
        hds_path        ./objs/nginx/html;
    }
}

配置项的意义和HLS类似,参考HLS config

Why HDS

为何SRS要在SRS2引入HDS?主要是SRS的HTTP服务器重写,以及文杰哥对于HDS很熟悉。另外,加入HDS不会对SRS现有结构有影响。

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

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

发布评论

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