mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
+server support band check +every vhost can have it's own chunk size
This commit is contained in:
parent
8887754b17
commit
6e9f375606
16 changed files with 668 additions and 108 deletions
|
@ -1,6 +1,6 @@
|
|||
listen 19350;
|
||||
chunk_size 65000;
|
||||
vhost __defaultVhost__ {
|
||||
chunk_size 65000;
|
||||
enabled on;
|
||||
gop_cache on;
|
||||
hls on;
|
||||
|
|
|
@ -1,11 +1,5 @@
|
|||
# the listen ports, split by space.
|
||||
listen 1935;
|
||||
# the default chunk size is 128, max is 65536,
|
||||
# some client does not support chunk size change,
|
||||
# however, most clients supports it and it can improve
|
||||
# performance about 10%.
|
||||
# if not specified, set to 4096.
|
||||
chunk_size 65000;
|
||||
# the logs dir.
|
||||
# if enabled ffmpeg, each stracoding stream will create a log file.
|
||||
# default: ./objs/logs
|
||||
|
@ -19,6 +13,12 @@ max_connections 2000;
|
|||
# for which cannot identify the required vhost.
|
||||
# for default demo.
|
||||
vhost __defaultVhost__ {
|
||||
# the default chunk size is 128, max is 65536,
|
||||
# some client does not support chunk size change,
|
||||
# however, most clients supports it and it can improve
|
||||
# performance about 10%.
|
||||
# if not specified, set to 4096.
|
||||
chunk_size 65000;
|
||||
enabled on;
|
||||
gop_cache on;
|
||||
hls on;
|
||||
|
@ -79,6 +79,7 @@ vhost __defaultVhost__ {
|
|||
}
|
||||
# for development
|
||||
vhost dev {
|
||||
chunk_size 65000;
|
||||
enabled on;
|
||||
gop_cache on;
|
||||
hls on;
|
||||
|
@ -87,7 +88,7 @@ vhost dev {
|
|||
hls_window 30;
|
||||
forward 127.0.0.1:19350;
|
||||
http_hooks {
|
||||
enabled on;
|
||||
enabled off;
|
||||
on_connect http://127.0.0.1:8085/api/v1/clients;
|
||||
on_close http://127.0.0.1:8085/api/v1/clients;
|
||||
on_publish http://127.0.0.1:8085/api/v1/streams;
|
||||
|
@ -133,6 +134,20 @@ vhost dev {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
vhost bandcheck.srs.com {
|
||||
chunk_size 65000;
|
||||
enabled on;
|
||||
# vhost for band width check
|
||||
bandcheck{
|
||||
enabled on;
|
||||
key test kate;
|
||||
interval 30;
|
||||
max_play_kbps 45000;
|
||||
max_pub_kbps 25000;
|
||||
}
|
||||
}
|
||||
|
||||
# the http hook callback vhost, srs will invoke the hooks for specified events.
|
||||
vhost hooks.callback.vhost.com {
|
||||
http_hooks {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue