mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-22 01:40:07 +01:00
Instant video processing metadata.
This commit is contained in:
committed by
Clark Chen
parent
f6d8dcf6fd
commit
b280ff7495
@@ -25,12 +25,22 @@ public class MediaStream implements Closeable {
|
||||
private final String mimeType;
|
||||
private final int width;
|
||||
private final int height;
|
||||
private final boolean faststart;
|
||||
|
||||
public MediaStream(InputStream stream, String mimeType, int width, int height) {
|
||||
this.stream = stream;
|
||||
this.mimeType = mimeType;
|
||||
this.width = width;
|
||||
this.height = height;
|
||||
this.stream = stream;
|
||||
this.mimeType = mimeType;
|
||||
this.width = width;
|
||||
this.height = height;
|
||||
this.faststart = false;
|
||||
}
|
||||
|
||||
public MediaStream(InputStream stream, String mimeType, int width, int height, boolean faststart) {
|
||||
this.stream = stream;
|
||||
this.mimeType = mimeType;
|
||||
this.width = width;
|
||||
this.height = height;
|
||||
this.faststart = faststart;
|
||||
}
|
||||
|
||||
public InputStream getStream() {
|
||||
@@ -49,6 +59,10 @@ public class MediaStream implements Closeable {
|
||||
return height;
|
||||
}
|
||||
|
||||
public boolean getFaststart() {
|
||||
return faststart;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void close() throws IOException {
|
||||
stream.close();
|
||||
|
||||
Reference in New Issue
Block a user