diff --git a/app.js b/app.js index 8c13282..66e60bb 100644 --- a/app.js +++ b/app.js @@ -316,7 +316,7 @@ class SrsClient extends Emitter { }); } await this.uac.modify(this.sdpOffer, { - headers: options.headers || {} + headers: options?.headers || {} }); this.paused = true; return true; @@ -343,7 +343,7 @@ class SrsClient extends Emitter { }); } await this.uac.modify(this.sdpOffer, { - headers: options.headers || {} + headers: options?.headers || {} }); this.paused = false; return true;