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

for #133, add rtsp listener and handler.

This commit is contained in:
winlin 2015-02-15 21:28:31 +08:00
parent 78f34ad46f
commit e81e090239
10 changed files with 209 additions and 8 deletions

View file

@ -141,17 +141,37 @@ http_server {
stream_caster {
# whether stream caster is enabled.
# default: off
enabled on;
enabled off;
# the caster type of stream, the casters:
# mpegts_over_udp, MPEG-TS over UDP caster.
# rtsp, Real Time Streaming Protocol (RTSP).
caster mpegts_over_udp;
# the output rtmp url.
# for example, rtmp://127.0.0.1/live/livestream.
# for mpegts_over_udp caster, the typically output url:
# rtmp://127.0.0.1/live/livestream
# for rtsp caster, the typically output url:
# rtmp://127.0.0.1/[app]/[stream]
# for example, the rtsp url:
# rtsp://192.168.1.173:8544/live/livestream.sdp
# where the [app] is "live" and [stream] is "livestream", output is:
# rtmp://127.0.0.1/live/livestream
output rtmp://127.0.0.1/live/livestream;
# the listen port for stream caster.
# for caster:
# mpegts_over_udp, listen at udp port.
listen 1935;
# for mpegts_over_udp caster, listen at udp port.
# for rtsp caster, listen at tcp port.
listen 8935;
}
stream_caster {
enabled off;
caster mpegts_over_udp;
output rtmp://127.0.0.1/live/livestream;
listen 8935;
}
stream_caster {
enabled on;
caster rtsp;
output rtmp://127.0.0.1/[app]/[stream];
listen 554;
}
#############################################################################################