mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 09:20:19 +01:00
Inline StreamingTranscoder.
Delete InMemoryTranscoder.
This commit is contained in:
committed by
Cody Henthorne
parent
ac9e5505ae
commit
623312d8f6
@@ -125,6 +125,6 @@ public abstract class MediaConstraints {
|
||||
}
|
||||
|
||||
public static boolean isVideoTranscodeAvailable() {
|
||||
return Build.VERSION.SDK_INT >= 26 && (RemoteConfig.useStreamingVideoMuxer() || MemoryFileDescriptor.supported());
|
||||
return Build.VERSION.SDK_INT >= 26;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -65,12 +65,7 @@ public class PushMediaConstraints extends MediaConstraints {
|
||||
|
||||
@Override
|
||||
public long getCompressedVideoMaxSize(Context context) {
|
||||
if (RemoteConfig.useStreamingVideoMuxer()) {
|
||||
return getMaxAttachmentSize();
|
||||
} else {
|
||||
return Util.isLowMemory(context) ? 30 * MB
|
||||
: 50 * MB;
|
||||
}
|
||||
return getMaxAttachmentSize();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user