3 Star 6 Fork 4

winlinvip / srs.wiki

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
migrate_v4_CN_delivery-hds.md 1.65 KB
一键复制 编辑 原始数据 按行查看 历史
winlinvip 提交于 2022-07-31 13:16 . Migrate wiki to new website.

HOME > CN > HDS

DeliveryHDS

Note: 如果觉得Github的Wiki访问太慢,可以访问 Gitee 镜像。

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

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

Build

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

./configure --hds=on

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现有结构有影响。

Winlin 2015.3

1
https://gitee.com/winlinvip/srs-wiki.git
git@gitee.com:winlinvip/srs-wiki.git
winlinvip
srs-wiki
srs.wiki
master

搜索帮助