1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

For RTC publisher, support black-hole

This commit is contained in:
winlin 2020-04-27 09:35:50 +08:00
parent e4329fd1a0
commit 7692e589ed
5 changed files with 146 additions and 17 deletions

View file

@ -461,6 +461,16 @@ rtc_server {
# then system queue is 2000*4 = 8k, user can incrase reuseport to incrase the queue.
# default: 2000
queue_length 2000;
# The black-hole to copy packet to, for debugging.
# For example, when debugging Chrome publish stream, the received packets are encrypted cipher,
# we can set the publisher black-hole, SRS will copy the plaintext packets to black-hole, and
# we are able to capture the plaintext packets by wireshark.
black_hole {
# Whether enable the black-hole.
enabled off;
# The black-hole address for publisher, or SRS as receiver.
publisher 127.0.0.1:10000;
}
}
vhost rtc.vhost.srs.com {