Instant video processing metadata.

This commit is contained in:
Nicholas Tinsley
2023-12-21 16:45:29 -05:00
committed by Clark Chen
parent f6d8dcf6fd
commit b280ff7495
3 changed files with 20 additions and 6 deletions

View File

@@ -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();