|
@@ -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.
|