Make Muxer interface extend AutoCloseable

PiperOrigin-RevId: 753534910
This commit is contained in:
sheenachhabra 2025-05-01 04:13:41 -07:00 committed by Copybara-Service
parent 7c13204c3b
commit d2fcf0c4eb

View File

@ -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;
} }