Statistics
| Branch: | Revision:

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

History | View | Annotate | Download (4.47 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
; audiopt = <audio RTP payload type> (e.g., 111)
26
; audiortpmap = RTP map of the audio codec (e.g., opus/48000/2)
27
; videoport = local port for receiving video frames
28
; videomcast = multicast group port for receiving video frames, if any
29
; videopt = <video RTP payload type> (e.g., 100)
30
; videortpmap = RTP map of the video codec (e.g., VP8/90000)
31
; videobufferkf = yes|no (whether the plugin should store the latest
32
;		keyframe and send it immediately for new viewers, EXPERIMENTAL)
33
; databuffermsg = yes|no (whether the plugin should store the latest
34
;		message and send it immediately for new viewers)
35
; url = RTSP stream URL (only for restreaming RTSP)
36
;
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
[general]
44
;admin_key = supersecret		; If set, mountpoints can be created via API
45
								; only if this key is provided in the request
46
;events = no					; Whether events should be sent to event
47
								; handlers (default is yes)
48

    
49
[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
videortpmap = VP8/90000
61
secret = adminpwd
62

    
63
[file-live-sample]
64
type = live
65
id = 2
66
description = a-law file source (radio broadcast)
67
filename = @streamdir@/radio.alaw		; See install.sh
68
audio = yes
69
video = no
70
secret = adminpwd
71

    
72
[file-ondemand-sample]
73
type = ondemand
74
id = 3
75
description = mu-law file source (music)
76
filename = @streamdir@/music.mulaw	; See install.sh
77
audio = yes
78
video = no
79
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
;
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
;
117
; 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
; NOTE WELL: the plugin does NOT transcode, so the RTSP stream MUST be
122
; in a format the browser can digest (e.g., VP8 or H.264 baseline for video)
123
;
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
;rtsp_user=username
132
;rtsp_pwd=password