mirror of
https://github.com/androidx/media.git
synced 2025-05-13 02:29:52 +08:00
Make Muxer interface extend AutoCloseable
PiperOrigin-RevId: 753534910
This commit is contained in:
parent
7c13204c3b
commit
d2fcf0c4eb
@ -26,7 +26,7 @@ import java.nio.ByteBuffer;
|
|||||||
|
|
||||||
/** A muxer for producing media container files. */
|
/** A muxer for producing media container files. */
|
||||||
@UnstableApi
|
@UnstableApi
|
||||||
public interface Muxer {
|
public interface Muxer extends AutoCloseable {
|
||||||
/** Factory for muxers. */
|
/** Factory for muxers. */
|
||||||
interface Factory {
|
interface Factory {
|
||||||
/**
|
/**
|
||||||
@ -76,5 +76,6 @@ public interface Muxer {
|
|||||||
*
|
*
|
||||||
* @throws MuxerException If the muxer fails to finish writing the output.
|
* @throws MuxerException If the muxer fails to finish writing the output.
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
void close() throws MuxerException;
|
void close() throws MuxerException;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user