srs/trunk/3rdparty/srs-docs/doc/delivery-hds.md
2025-06-27 07:23:45 -04:00

60 lines
1.2 KiB
Markdown
Raw Blame History

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.

---
title: HDS Delivery
sidebar_label: HDS Delivery
hide_title: false
hide_table_of_contents: false
---
# HDS Delivery
HDS is the Http Dynamic Stream of Adobesimilar to Apple [HLS](./hls.md).
For specification of HDS, read http://www.adobe.com/devnet/hds.html
## Build
We can disable or enable HDS when build SRS, read [Build](./install.md)
```
./configure --hds=on
```
## Player
The OSMF player can play HDS. For example, use VLC to play the following HDS:
```
http://ossrs.net:8081/live/livestream.f4m
```
## HDS Config
The vhost hds.srs.com of conf/full.conf describes the config for 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;
}
}
```
The config items are similar to HLS, read [HLS config](./hls.md#hls-config)
Winlin 2015.3
![](https://ossrs.io/gif/v1/sls.gif?site=ossrs.io&path=/lts/doc/en/v7/delivery-hds)