Skip to content
Snippets Groups Projects
Commit 8150db9f authored by prlanzarin's avatar prlanzarin
Browse files

Improve codec availability detection in SFU

parent 5cb222c7
No related branches found
No related tags found
No related merge requests found
......@@ -93,7 +93,7 @@ module.exports = class SdpSession extends MediaSession {
}
_hasAvailableCodec () {
return (this._offer.hasAvailableVideoCodec() === this._answer.hasAvailableVideoCodec()) &&
(this._offer.hasAvailableAudioCodec() === this._answer.hasAvailableAudioCodec());
return (this._offer.hasAvailableVideoCodec() && this._answer.hasAvailableVideoCodec()) ||
(this._offer.hasAvailableAudioCodec() && this._answer.hasAvailableAudioCodec());
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment