Browse Source

fix(recording): allow calling toggleRecording with no options

master
Paweł Domas 7 years ago
parent
commit
f81b5a22fb
1 changed files with 7 additions and 2 deletions
  1. 7
    2
      modules/xmpp/recording.js

+ 7
- 2
modules/xmpp/recording.js View File

@@ -334,10 +334,15 @@ Recording.prototype.setRecording = function(...args) {
334 334
 
335 335
 /**
336 336
  * Starts/stops the recording.
337
- * @param token token for authentication
337
+ * @param {Object} options
338
+ * @param {string} options.token token for authentication
339
+ * @param {string} options.streamId the stream ID to be used with Jibri in
340
+ * the streaming mode.
338 341
  * @param statusChangeHandler {function} receives the new status as argument.
339 342
  */
340
-Recording.prototype.toggleRecording = function(options, statusChangeHandler) {
343
+Recording.prototype.toggleRecording = function(
344
+    options = { },
345
+    statusChangeHandler) {
341 346
     const oldState = this.state;
342 347
 
343 348
     // If the recorder is currently unavailable we throw an error.

Loading…
Cancel
Save