mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-25 11:05:25 +00:00
33 lines
693 B
Java
33 lines
693 B
Java
|
package org.thoughtcrime.securesms.mms;
|
||
|
|
||
|
public class PushMediaConstraints extends MediaConstraints {
|
||
|
private static final int MAX_IMAGE_DIMEN = 1280;
|
||
|
private static final int KB = 1024;
|
||
|
private static final int MB = 1024 * KB;
|
||
|
|
||
|
@Override
|
||
|
public int getImageMaxWidth() {
|
||
|
return MAX_IMAGE_DIMEN;
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public int getImageMaxHeight() {
|
||
|
return MAX_IMAGE_DIMEN;
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public int getImageMaxSize() {
|
||
|
return 300 * KB;
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public int getVideoMaxSize() {
|
||
|
return MmsMediaConstraints.MAX_MESSAGE_SIZE;
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public int getAudioMaxSize() {
|
||
|
return MmsMediaConstraints.MAX_MESSAGE_SIZE;
|
||
|
}
|
||
|
}
|