ソースを参照

fix(recording): allow calling toggleRecording with no options

master
Paweł Domas 7年前
コミット
f81b5a22fb
1個のファイルの変更7行の追加2行の削除
  1. 7
    2
      modules/xmpp/recording.js

+ 7
- 2
modules/xmpp/recording.js ファイルの表示

334
 
334
 
335
 /**
335
 /**
336
  * Starts/stops the recording.
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
  * @param statusChangeHandler {function} receives the new status as argument.
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
     const oldState = this.state;
346
     const oldState = this.state;
342
 
347
 
343
     // If the recorder is currently unavailable we throw an error.
348
     // If the recorder is currently unavailable we throw an error.

読み込み中…
キャンセル
保存