improve video quality a bit
This commit is contained in:
parent
5806616b26
commit
f20eecba7a
2 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue