You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/live_ex_webrtc/publisher.ex
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -147,6 +147,7 @@ defmodule LiveExWebRTC.Publisher do
147
147
recordings?: true,
148
148
# recorder instance
149
149
recorder: nil,
150
+
recorder_opts: [],
150
151
audio_track: nil,
151
152
video_track: nil,
152
153
on_packet: nil,
@@ -195,6 +196,7 @@ defmodule LiveExWebRTC.Publisher do
195
196
* `pubsub` - a pubsub that publisher live view will use for broadcasting audio and video packets received from a browser. See module doc for more info.
196
197
* `recordings?` - whether to allow for recordings or not. Defaults to true.
197
198
See module doc and `t:on_disconnected/0` for more info.
199
+
* `recorder_opts` - a list of options that will be passed to the recorder. In particular, they can contain S3 config where recordings will be uploaded. See `t:ExWebRTC.Recorder.option/0` for more.
198
200
* `on_connected` - callback called when the underlying peer connection changes its state to the `:connected`. See `t:on_connected/0`.
199
201
* `on_disconnected` - callback called when the underlying peer connection process terminates. See `t:on_disconnected/0`.
200
202
* `on_recording_finished` - callback called when the stream recording has finised. See `t:on_recording_finished/0`.
@@ -214,6 +216,7 @@ defmodule LiveExWebRTC.Publisher do
214
216
:name,
215
217
:pubsub,
216
218
:recordings?,
219
+
:recorder_opts,
217
220
:on_packet,
218
221
:on_connected,
219
222
:on_disconnected,
@@ -230,6 +233,7 @@ defmodule LiveExWebRTC.Publisher do
0 commit comments