Statistics
| Branch: | Revision:

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

History | View | Annotate | Download (5.09 KB)

1
; [stream-name]
2
; type = rtp|live|ondemand|rtsp
3
;        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
;        rtsp = stream originated by an external RTSP feed (only
10
;               available if libcurl support was compiled)
11
; id = <unique numeric ID> (if missing, a random one will be generated)
12
; description = This is my awesome stream
13
; is_private = yes|no (private streams don't appear when you do a 'list'
14
;			request)
15
; secret = <optional password needed for manipulating (e.g., destroying
16
;			or enabling/disabling) the stream>
17
; pin = <optional password needed for watching the stream>
18
; 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
; data = yes|no (do/don't stream text via datachannels)
23
; audioport = local port for receiving audio frames
24
; audiomcast = multicast group port for receiving audio frames, if any
25
; audioiface = network interface or IP address to bind to, if any (binds to all otherwise)
26
; audiopt = <audio RTP payload type> (e.g., 111)
27
; audiortpmap = RTP map of the audio codec (e.g., opus/48000/2)
28
; videoport = local port for receiving video frames
29
; videomcast = multicast group port for receiving video frames, if any
30
; videoiface = network interface or IP address to bind to, if any (binds to all otherwise)
31
; videopt = <video RTP payload type> (e.g., 100)
32
; videortpmap = RTP map of the video codec (e.g., VP8/90000)
33
; videobufferkf = yes|no (whether the plugin should store the latest
34
;		keyframe and send it immediately for new viewers, EXPERIMENTAL)
35
; 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
; databuffermsg = yes|no (whether the plugin should store the latest
38
;		message and send it immediately for new viewers)
39
;
40
; The following options are only valid for the 'rstp' type:
41
; url = RTSP stream URL (only for restreaming RTSP)
42
; 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
;
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
[general]
53
;admin_key = supersecret		; If set, mountpoints can be created via API
54
								; only if this key is provided in the request
55
;events = no					; Whether events should be sent to event
56
								; handlers (default is yes)
57

    
58
[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
videortpmap = VP8/90000
70
secret = adminpwd
71

    
72
[file-live-sample]
73
type = live
74
id = 2
75
description = a-law file source (radio broadcast)
76
filename = @streamdir@/radio.alaw		; See install.sh
77
audio = yes
78
video = no
79
secret = adminpwd
80

    
81
[file-ondemand-sample]
82
type = ondemand
83
id = 3
84
description = mu-law file source (music)
85
filename = @streamdir@/music.mulaw	; See install.sh
86
audio = yes
87
video = no
88
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
;
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
;
126
; 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
; NOTE WELL: the plugin does NOT transcode, so the RTSP stream MUST be
131
; in a format the browser can digest (e.g., VP8 or H.264 baseline for video)
132
;
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
;rtsp_user=username
141
;rtsp_pwd=password