·您当前的位置:首页 > 技术教程 > crtmpserver >

[crtmpserver]crtmpserver配置文件分析

时间:2016-01-18 21:10酷播
[crtmpserver]crtmpserver配置文件分析
application structure
key type mandatory description
name string yes Name of application.
应用的名称
protocol string yes Type of application. The value dynamiclinklibrary means the application is a shared library.
应用的类型
值为 dynamiclinklibrary 意即 应用是一个共享库
description string no You can put a description of the application here.
应用的描述信息
default boolean no This flag designates the default application. 
The default application is responsible in analyzing the connectrequest
and distribute the future connection to the correct application.
这个标志指定了默认应用;
默认应用负责分析连接请求并将连接分配到正确的应用
validateHandshake boolean no Tells the server to validate the client's handshake before going further. 
This is optional with a default value of true. If this is true and the handshake fails, 
the connection is dropped. If this is false, handshake validation will not be enforced 
and all the connections are accepted no matter if they are correctly hand shaking or not.
通知服务器在进行下一步前要对客户端的握手进行验证;
这是一个可选项,其默认值为真。
如果这个值为真 且 握手失败,服务器就放弃这个连接。
如果这个值为假,则不会进行强制的握手验证,所有的连接都会被接受;
keyframeSeek boolean no This instructs the streamer to seek only on key frames. In case of live streaming, this is discarded.
这个属性指定了流生成器只在关键帧搜索,
如果是直播流,则忽略这个值
seekGranularity double no The seek resolution/granularity value in seconds. Values are between 0.1 and 600. 
For example, if granularity is 10 seconds, and a seek to t=2:34 is desired, the seek 
will actually go to t=2:30. 
60seconds is recommended for full length movies and 1 second for video clips.
搜索的精细度,以秒为单位, 值域定义在 0.1 ~ 600; 
例如:
如果粒度定义为10秒,并期望定位到 t= 2:34; 
则实际上是会定位到 t= 2:30. 
60秒被认定为完整的电影长度,1秒为电影片断;
clientSideBuffer double no The amount of client side buffer that will be maintained for each connection. 
Values are between 5 and30 seconds.
每个连接在客户端的缓冲秒数,值定义在5 ~ 30 秒;
generateMetaFiles boolean no This will generate seek/meta files on application startup.
在应用启动前生成 seek/meta文件
renameBadFiles boolean no If this flag is true and the media file can't be parsed, the media file will be renamed to *.bad. 
Otherwise it will be left alone.
如果这上值为真且媒体文件是不能被解析的,则媒体文件被重命名为 *.bad,
否则这样的文件将不做处理
aliases object no The application will also be known by this name.
应用的别名
acceptors object no Acceptors hold the service that will be hosted to the server. An application can have its own acceptor, 
but this is not entirely required, and can be optional.
接受器保持这个服务并让服务器托管;
应用可以有它自己的接受器,但这个是可选的;
externalStreams object no  
authentication object no  
mediaFolder string yes When define mediaStorage this field is mandatory as it points out physical location of media files.
当定义了 mediaStorage时,这个域用来指定媒体文件的物理位置;
metaFolder string no It holds the location where .seek/.meta files created from files inside mediaFolder are stored.
指定用来存放 .seek/.meta文件的位置;
statsFolder string no Location for stats files.
服状态文件的位置
acceptor structure
key type mandatory description
ip string yes The IP where the service is located. 0.0.0.0 means all interfaces and all IPs.
服务所在的IP, 0.0.0.0表示所有接口和所有IP; 
port string yes Port number that the service will listen to.
服务监听的端口
protocol string yes The protocol stack handled by the ip:port combination.
对应 ip:port的服务的协

http://www.cnblogs.com/zjoch/archive/2013/08/23/3277198.html

热门文章推荐

请稍候...

保利威视云平台-轻松实现点播直播视频应用

酷播云数据统计分析跨平台播放器