Skip to content

Commit fc276ab

Browse files
authored
fix: Filter out non-video codecs. (#747)
1 parent 8238c5c commit fc276ab

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/src/participant/local.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,8 @@ class LocalParticipant extends Participant<LocalTrackPublication> {
209209
// fallback to a supported codec if it is not supported
210210
if (!room.engine.enabledPublishCodecs!
211211
.where((c) => c.mime.startsWith('video/'))
212+
.where(
213+
(c) => videoCodecs.any((v) => c.mime.toLowerCase().endsWith(v)))
212214
.any((c) =>
213215
publishOptions?.videoCodec ==
214216
mimeTypeToVideoCodecString(c.mime))) {

0 commit comments

Comments
 (0)