1
0
Fork 1

improve video quality a bit

This commit is contained in:
Christian Schneppe 2020-07-05 21:19:04 +02:00
parent 5806616b26
commit f20eecba7a
2 changed files with 4 additions and 4 deletions

View file

@ -78,7 +78,7 @@ class AndroidStandardFormatStrategy implements MediaFormatStrategy {
format.setInteger(MediaFormat.KEY_I_FRAME_INTERVAL, 3);
format.setInteger(MediaFormat.KEY_COLOR_FORMAT, MediaCodecInfo.CodecCapabilities.COLOR_FormatSurface);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
format.setInteger(MediaFormat.KEY_PROFILE ,MediaCodecInfo.CodecProfileLevel.AVCProfileBaseline);
format.setInteger(MediaFormat.KEY_PROFILE, MediaCodecInfo.CodecProfileLevel.AVCProfileBaseline);
format.setInteger(MediaFormat.KEY_LEVEL, MediaCodecInfo.CodecProfileLevel.AVCLevel13);
}
return format;

View file

@ -1061,11 +1061,11 @@ public class XmppConnectionService extends Service {
case "verylow":
return 100000;
case "low":
return 100000;
case "mid":
return 500000;
case "high":
case "mid":
return 2000000;
case "high":
return 4000000;
case "uncompressed":
return 0;
default: