java.lang.AutoCloseable, java.io.CloseableFragmentedMp4Writer, StandardMp4Writerpublic interface SampleSink
extends java.io.Closeable
| Modifier and Type | Method | Description |
|---|---|---|
void |
acceptSample(StreamingSample streamingSample,
StreamingTrack streamingTrack) |
Adds a samples to the SampleSink.
|
void |
close() |
Free all resources blocked and interrupts the process of
writing the output.
|
void close()
throws java.io.IOException
close in interface java.lang.AutoCloseableclose in interface java.io.Closeablejava.io.IOException - if closing failsvoid acceptSample(StreamingSample streamingSample, StreamingTrack streamingTrack) throws java.io.IOException
StreamingTrack must be ready and accept calls to any method.java.io.IOException - if writing (or reading) fails.Copyright © 2019. All rights reserved.