Statistics
| Branch: | Revision:

janus-gateway / conf / janus.plugin.streaming.cfg.sample.in @ 1f44763c

History | View | Annotate | Download (5.09 KB)

1 be35facb meetecho
; [stream-name]
2 b9568296 meetecho
; type = rtp|live|ondemand|rtsp
3 be35facb meetecho
;        rtp = stream originated by an external tool (e.g., gstreamer or
4
;              ffmpeg) and sent to the plugin via RTP
5
;        live = local file streamed live to multiple listeners
6
;               (multiple listeners = same streaming context)
7
;        ondemand = local file streamed on-demand to a single listener
8
;                   (multiple listeners = different streaming contexts)
9 b9568296 meetecho
;        rtsp = stream originated by an external RTSP feed (only
10
;               available if libcurl support was compiled)
11 39cdaef0 meetecho
; id = <unique numeric ID> (if missing, a random one will be generated)
12 be35facb meetecho
; description = This is my awesome stream
13 0a466e28 janus
; is_private = yes|no (private streams don't appear when you do a 'list'
14 3b96f8e8 meetecho
;			request)
15 6dd1c12c meetecho
; secret = <optional password needed for manipulating (e.g., destroying
16
;			or enabling/disabling) the stream>
17 5d20bcec Lorenzo Miniero
; pin = <optional password needed for watching the stream>
18 be35facb meetecho
; filename = path to the local file to stream (only for live/ondemand)
19
; audio = yes|no (do/don't stream audio)
20
; video = yes|no (do/don't stream video)
21
;    The following options are only valid for the 'rtp' type:
22 25d3a827 Lorenzo Miniero
; data = yes|no (do/don't stream text via datachannels)
23 be35facb meetecho
; audioport = local port for receiving audio frames
24 6089eb4e Lorenzo Miniero
; audiomcast = multicast group port for receiving audio frames, if any
25 39a6ab80 Lorenzo Miniero
; audioiface = network interface or IP address to bind to, if any (binds to all otherwise)
26 f5d4a446 Lorenzo Miniero
; audiopt = <audio RTP payload type> (e.g., 111)
27 be35facb meetecho
; audiortpmap = RTP map of the audio codec (e.g., opus/48000/2)
28 6089eb4e Lorenzo Miniero
; videoport = local port for receiving video frames
29
; videomcast = multicast group port for receiving video frames, if any
30 39a6ab80 Lorenzo Miniero
; videoiface = network interface or IP address to bind to, if any (binds to all otherwise)
31 f5d4a446 Lorenzo Miniero
; videopt = <video RTP payload type> (e.g., 100)
32 be35facb meetecho
; videortpmap = RTP map of the video codec (e.g., VP8/90000)
33 8770445b Lorenzo Miniero
; videobufferkf = yes|no (whether the plugin should store the latest
34
;		keyframe and send it immediately for new viewers, EXPERIMENTAL)
35 39a6ab80 Lorenzo Miniero
; dataport = local port for receiving data messages to relay
36
; dataiface = network interface or IP address to bind to, if any (binds to all otherwise)
37 25d3a827 Lorenzo Miniero
; databuffermsg = yes|no (whether the plugin should store the latest
38
;		message and send it immediately for new viewers)
39 fdf6adb6 Lorenzo Miniero
;
40
; The following options are only valid for the 'rstp' type:
41 6089eb4e Lorenzo Miniero
; url = RTSP stream URL (only for restreaming RTSP)
42 fdf6adb6 Lorenzo Miniero
; rtsp_user = RTSP authorization username (only if type=rtsp)
43
; rtsp_pwd = RTSP authorization password (only if type=rtsp)
44
; rtspiface = network interface or IP address to bind to, if any (binds to all otherwise), when receiving RTSP streams
45 be35facb meetecho
;
46
; To test the [gstreamer-sample] example, check the test_gstreamer.sh
47
; script in the plugins/streams folder. To test the live and on-demand
48
; audio file streams, instead, the install.sh installation script
49
; automatically downloads a couple of files (radio.alaw, music.mulaw)
50
; to the plugins/streams folder. 
51
52 930a4a4c Lorenzo Miniero
[general]
53
;admin_key = supersecret		; If set, mountpoints can be created via API
54
								; only if this key is provided in the request
55 71a04f89 Lorenzo Miniero
;events = no					; Whether events should be sent to event
56
								; handlers (default is yes)
57 930a4a4c Lorenzo Miniero
58 be35facb meetecho
[gstreamer-sample]
59
type = rtp
60
id = 1
61
description = Opus/VP8 live stream coming from gstreamer
62
audio = yes
63
video = yes
64
audioport = 5002
65
audiopt = 111
66
audiortpmap = opus/48000/2
67
videoport = 5004
68
videopt = 100
69 292d035f meetecho
videortpmap = VP8/90000
70 6dd1c12c meetecho
secret = adminpwd
71 be35facb meetecho
72
[file-live-sample]
73
type = live
74
id = 2
75 e33d4928 meetecho
description = a-law file source (radio broadcast)
76 f4fb2029 Jack Leigh
filename = @streamdir@/radio.alaw		; See install.sh
77 be35facb meetecho
audio = yes
78
video = no
79 6dd1c12c meetecho
secret = adminpwd
80 be35facb meetecho
81
[file-ondemand-sample]
82
type = ondemand
83
id = 3
84 e33d4928 meetecho
description = mu-law file source (music)
85 f4fb2029 Jack Leigh
filename = @streamdir@/music.mulaw	; See install.sh
86 be35facb meetecho
audio = yes
87
video = no
88 6dd1c12c meetecho
secret = adminpwd
89
90
;
91
; Firefox Nightly supports H.264 through Cisco's OpenH264 plugin. The only
92
; supported profile is the baseline one. This is an example of how to create
93
; a H.264 mountpoint: you can feed it an x264enc+rtph264pay pipeline in
94
; gstreamer.
95
;
96
;[h264-sample]
97
;type = rtp
98
;id = 10
99
;description = H.264 live stream coming from gstreamer
100
;audio = no
101
;video = yes
102
;videoport = 8004
103
;videopt = 126
104
;videortpmap = H264/90000
105
;videofmtp = profile-level-id=42e01f\;packetization-mode=1
106
107 02827e31 Michel Promonet
;
108
; This is a sample configuration for Opus/VP8 multicast streams
109
;
110
;[gstreamer-multicast]
111
;type = rtp
112
;id = 20
113
;description = Opus/VP8 live multicast stream coming from gstreamer 
114
;audio = yes
115
;video = yes
116
;audioport = 5002
117
;audiomcast = 232.3.4.5
118
;audiopt = 111
119
;audiortpmap = opus/48000/2
120
;videoport = 5004
121
;videomcast = 232.3.4.5
122
;videopt = 100
123
;videortpmap = VP8/90000
124
125 b9568296 meetecho
;
126 944b97ff Lorenzo Miniero
; This is a sample configuration for an RTSP stream: you can specify
127
; the url to connect to and whether or not authentication is needed
128
; using the url/rtsp_user/rtsp_pwd settings (but notice that digest
129
; authentication will only work if you installed libcurl >= 7.45.0)
130 b9568296 meetecho
; NOTE WELL: the plugin does NOT transcode, so the RTSP stream MUST be
131 944b97ff Lorenzo Miniero
; in a format the browser can digest (e.g., VP8 or H.264 baseline for video)
132 b9568296 meetecho
;
133
;[rtsp-test]
134
;type = rtsp
135
;id = 99
136
;description = RTSP Test
137
;audio = no
138
;video = yes
139
;url=rtsp://127.0.0.1:8554/unicast
140 944b97ff Lorenzo Miniero
;rtsp_user=username
141
;rtsp_pwd=password