Statistics
| Branch: | Revision:

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

History | View | Annotate | Download (4.47 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 f5d4a446 Lorenzo Miniero
; audiopt = <audio RTP payload type> (e.g., 111)
26 be35facb meetecho
; audiortpmap = RTP map of the audio codec (e.g., opus/48000/2)
27 6089eb4e Lorenzo Miniero
; videoport = local port for receiving video frames
28
; videomcast = multicast group port for receiving video frames, if any
29 f5d4a446 Lorenzo Miniero
; videopt = <video RTP payload type> (e.g., 100)
30 be35facb meetecho
; videortpmap = RTP map of the video codec (e.g., VP8/90000)
31 8770445b Lorenzo Miniero
; videobufferkf = yes|no (whether the plugin should store the latest
32
;		keyframe and send it immediately for new viewers, EXPERIMENTAL)
33 25d3a827 Lorenzo Miniero
; databuffermsg = yes|no (whether the plugin should store the latest
34
;		message and send it immediately for new viewers)
35 6089eb4e Lorenzo Miniero
; url = RTSP stream URL (only for restreaming RTSP)
36 be35facb meetecho
;
37
; To test the [gstreamer-sample] example, check the test_gstreamer.sh
38
; script in the plugins/streams folder. To test the live and on-demand
39
; audio file streams, instead, the install.sh installation script
40
; automatically downloads a couple of files (radio.alaw, music.mulaw)
41
; to the plugins/streams folder. 
42
43 930a4a4c Lorenzo Miniero
[general]
44
;admin_key = supersecret		; If set, mountpoints can be created via API
45
								; only if this key is provided in the request
46 71a04f89 Lorenzo Miniero
;events = no					; Whether events should be sent to event
47
								; handlers (default is yes)
48 930a4a4c Lorenzo Miniero
49 be35facb meetecho
[gstreamer-sample]
50
type = rtp
51
id = 1
52
description = Opus/VP8 live stream coming from gstreamer
53
audio = yes
54
video = yes
55
audioport = 5002
56
audiopt = 111
57
audiortpmap = opus/48000/2
58
videoport = 5004
59
videopt = 100
60 292d035f meetecho
videortpmap = VP8/90000
61 6dd1c12c meetecho
secret = adminpwd
62 be35facb meetecho
63
[file-live-sample]
64
type = live
65
id = 2
66 e33d4928 meetecho
description = a-law file source (radio broadcast)
67 f4fb2029 Jack Leigh
filename = @streamdir@/radio.alaw		; See install.sh
68 be35facb meetecho
audio = yes
69
video = no
70 6dd1c12c meetecho
secret = adminpwd
71 be35facb meetecho
72
[file-ondemand-sample]
73
type = ondemand
74
id = 3
75 e33d4928 meetecho
description = mu-law file source (music)
76 f4fb2029 Jack Leigh
filename = @streamdir@/music.mulaw	; See install.sh
77 be35facb meetecho
audio = yes
78
video = no
79 6dd1c12c meetecho
secret = adminpwd
80
81
;
82
; Firefox Nightly supports H.264 through Cisco's OpenH264 plugin. The only
83
; supported profile is the baseline one. This is an example of how to create
84
; a H.264 mountpoint: you can feed it an x264enc+rtph264pay pipeline in
85
; gstreamer.
86
;
87
;[h264-sample]
88
;type = rtp
89
;id = 10
90
;description = H.264 live stream coming from gstreamer
91
;audio = no
92
;video = yes
93
;videoport = 8004
94
;videopt = 126
95
;videortpmap = H264/90000
96
;videofmtp = profile-level-id=42e01f\;packetization-mode=1
97
98 02827e31 Michel Promonet
;
99
; This is a sample configuration for Opus/VP8 multicast streams
100
;
101
;[gstreamer-multicast]
102
;type = rtp
103
;id = 20
104
;description = Opus/VP8 live multicast stream coming from gstreamer 
105
;audio = yes
106
;video = yes
107
;audioport = 5002
108
;audiomcast = 232.3.4.5
109
;audiopt = 111
110
;audiortpmap = opus/48000/2
111
;videoport = 5004
112
;videomcast = 232.3.4.5
113
;videopt = 100
114
;videortpmap = VP8/90000
115
116 b9568296 meetecho
;
117 944b97ff Lorenzo Miniero
; This is a sample configuration for an RTSP stream: you can specify
118
; the url to connect to and whether or not authentication is needed
119
; using the url/rtsp_user/rtsp_pwd settings (but notice that digest
120
; authentication will only work if you installed libcurl >= 7.45.0)
121 b9568296 meetecho
; NOTE WELL: the plugin does NOT transcode, so the RTSP stream MUST be
122 944b97ff Lorenzo Miniero
; in a format the browser can digest (e.g., VP8 or H.264 baseline for video)
123 b9568296 meetecho
;
124
;[rtsp-test]
125
;type = rtsp
126
;id = 99
127
;description = RTSP Test
128
;audio = no
129
;video = yes
130
;url=rtsp://127.0.0.1:8554/unicast
131 944b97ff Lorenzo Miniero
;rtsp_user=username
132
;rtsp_pwd=password