File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed
Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -1226,7 +1226,15 @@ extension EngineInternalMethods on Engine {
12261226
12271227 var matchesVideoCodec = codec == 'video/$videoCodec ' ;
12281228 if (! matchesVideoCodec) {
1229- unmatched.add (c);
1229+ if (lkPlatformIs (PlatformType .android) && codec == 'video/vp9' ) {
1230+ if (c.sdpFmtpLine != null &&
1231+ (c.sdpFmtpLine! .contains ('profile-id=0' ) ||
1232+ c.sdpFmtpLine! .contains ('profile-id=1' ))) {
1233+ unmatched.add (c);
1234+ }
1235+ } else {
1236+ unmatched.add (c);
1237+ }
12301238 continue ;
12311239 }
12321240 // for h264 codecs that have sdpFmtpLine available, use only if the
@@ -1240,7 +1248,15 @@ extension EngineInternalMethods on Engine {
12401248 }
12411249 continue ;
12421250 }
1243- matched.add (c);
1251+ if (lkPlatformIs (PlatformType .android) && codec == 'video/vp9' ) {
1252+ if (c.sdpFmtpLine != null &&
1253+ (c.sdpFmtpLine! .contains ('profile-id=0' ) ||
1254+ c.sdpFmtpLine! .contains ('profile-id=1' ))) {
1255+ matched.add (c);
1256+ }
1257+ } else {
1258+ matched.add (c);
1259+ }
12441260 }
12451261 matched.addAll ([...partialMatched, ...unmatched]);
12461262 try {
You can’t perform that action at this time.
0 commit comments