srs配置文件分析

在这里插入图片描述

配置文件中的每一项都是一个SrsConfDirective对象。
在这里插入图片描述

例子:vhost
1、 整个vhost 是一个SrsConfDirective对象。
1.1、名字:std::string name = vhost
1.2、参数:std::vectorstd::string args第0个值 = defaultVhost
1.3、子SrsConfDirective:后面整个{}内表示vhost 这个SrsConfDirective还有包含一个数组的SrsConfDirective。
(std::vector<SrsConfDirective*> directives),就包含hls和http_remux这两个SrsConfiDirective.

hls 这个SrsConfDirective对象,没有参数只有子SrsConfDirective。
分别为enabled,hls_path,hls_fragment,hls_window,
如:enabled on 这个SrsConfDirective,名字 = enabled,参数0 = on。

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/m0_37599645/article/details/121111607
今日推荐