Clone
19
v2_CN_DeliveryHDS
winlin edited this page 2022-01-06 11:57:15 +08:00
This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

HOME > CN > HDS

DeliveryHDS

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

Winlin 2015.3