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
@@ -138,14 +141,19 @@ defmodule LiveExWebRTC.Publisher do
138
141
pc: nil,
139
142
streaming?: false,
140
143
simulcast_supported?: nil,
144
+
# record checkbox status
141
145
record?: false,
146
+
# whether recorings are allowed or not
147
+
recordings?: true,
148
+
# recorder instance
149
+
recorder: nil,
142
150
audio_track: nil,
143
151
video_track: nil,
144
152
on_packet: nil,
145
153
on_connected: nil,
146
154
on_disconnected: nil,
155
+
on_recording_finished: nil,
147
156
pubsub: nil,
148
-
recorder: nil,
149
157
ice_servers: nil,
150
158
ice_ip_filter: nil,
151
159
ice_port_range: nil,
@@ -185,10 +193,11 @@ defmodule LiveExWebRTC.Publisher do
185
193
* `id` - publisher id. This is typically your user id (if there is users database).
186
194
It is used to identify live view and generated HTML elements.
187
195
* `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.
188
-
* `recorder` - optional `ExWebRTC.Recorder` instance that publisher live view will use for recording the stream.
196
+
* `recordings?` - whether to allow for recordings or not. Defaults to true.
189
197
See module doc and `t:on_disconnected/0` for more info.
190
198
* `on_connected` - callback called when the underlying peer connection changes its state to the `:connected`. See `t:on_connected/0`.
191
199
* `on_disconnected` - callback called when the underlying peer connection process terminates. See `t:on_disconnected/0`.
200
+
* `on_recording_finished` - callback called when the stream recording has finised. See `t:on_recording_finished/0`.
192
201
* `on_packet` - callback called for each audio and video RTP packet. Can be used to modify the packet before publishing it on a pubsub. See `t:on_packet/0`.
193
202
* `ice_servers` - a list of `t:ExWebRTC.PeerConnection.Configuration.ice_server/0`,
0 commit comments