|
@@ -286,6 +286,18 @@ export default class BrowserCapabilities extends BrowserDetection {
|
286
|
286
|
|| window.RTCRtpSender.prototype.createEncodedVideoStreams));
|
287
|
287
|
}
|
288
|
288
|
|
|
289
|
+ /**
|
|
290
|
+ * Whether the browser supports the RED format for audio.
|
|
291
|
+ */
|
|
292
|
+ supportsAudioRed() {
|
|
293
|
+ return Boolean(window.RTCRtpSender
|
|
294
|
+ && window.RTCRtpSender.getCapabilities
|
|
295
|
+ && window.RTCRtpSender.getCapabilities('audio').codecs.some(codec => codec.mimeType === 'audio/red')
|
|
296
|
+ && window.RTCRtpReceiver
|
|
297
|
+ && window.RTCRtpReceiver.getCapabilities
|
|
298
|
+ && window.RTCRtpReceiver.getCapabilities('audio').codecs.some(codec => codec.mimeType === 'audio/red'));
|
|
299
|
+ }
|
|
300
|
+
|
289
|
301
|
/**
|
290
|
302
|
* Checks if the browser supports the "sdpSemantics" configuration option.
|
291
|
303
|
* https://webrtc.org/web-apis/chrome/unified-plan/
|