mirror of
https://github.com/ossrs/srs.git
synced 2025-02-13 11:51:57 +00:00
* fix annotation spell failed * RTC to RTMP using SenderReport to sync av timestamp * update pion/webrtc versio from v3.0.4 -> v3.0.13, auto config sender/receiver report * Add rtc push flv play regression test * Add unit test of ntp and av sync time * Take flag CXX to makefile of utest * Add annotation about rtc unit test * Fix compiler error in C++98 * Add FFmpeg log callback funciton.
59 lines
1.3 KiB
Text
59 lines
1.3 KiB
Text
|
|
listen 1935;
|
|
max_connections 1000;
|
|
daemon on;
|
|
disable_daemon_for_docker off;
|
|
srs_log_tank file;
|
|
|
|
http_server {
|
|
enabled on;
|
|
listen 8080;
|
|
dir ./objs/nginx/html;
|
|
}
|
|
|
|
http_api {
|
|
enabled on;
|
|
listen 1985;
|
|
}
|
|
stats {
|
|
network 0;
|
|
}
|
|
rtc_server {
|
|
enabled on;
|
|
# Listen at udp://8000
|
|
listen 8000;
|
|
#
|
|
# The $CANDIDATE means fetch from env, if not configed, use * as default.
|
|
#
|
|
# The * means retrieving server IP automatically, from all network interfaces,
|
|
# @see https://github.com/ossrs/srs/issues/307#issuecomment-599028124
|
|
candidate $CANDIDATE;
|
|
}
|
|
|
|
vhost __defaultVhost__ {
|
|
rtc {
|
|
enabled on;
|
|
bframe discard;
|
|
rtc_to_rtmp on;
|
|
}
|
|
play {
|
|
atc on;
|
|
}
|
|
http_remux {
|
|
enabled on;
|
|
mount [vhost]/[app]/[stream].flv;
|
|
}
|
|
ingest livestream {
|
|
enabled on;
|
|
input {
|
|
type file;
|
|
url ./doc/source.200kbps.768x320.flv;
|
|
}
|
|
ffmpeg ./objs/ffmpeg/bin/ffmpeg;
|
|
engine {
|
|
enabled off;
|
|
output rtmp://127.0.0.1:[port]/live/livestream;
|
|
}
|
|
}
|
|
}
|
|
|