WebmMuxer.Builder
class WebmMuxer.Builder
A builder for WebmMuxer instances.
Summary
Public constructors |
|---|
Builder(seekableMuxerOutput: SeekableMuxerOutput!)Creates an instance. |
Public functions |
|
|---|---|
WebmMuxer! |
build()Builds a |
WebmMuxer.Builder! |
@CanIgnoreReturnValueSets whether to enable the sample copy. |
Public constructors
Builder
Builder(seekableMuxerOutput: SeekableMuxerOutput!)
Creates an instance.
| Parameters | |
|---|---|
seekableMuxerOutput: SeekableMuxerOutput! |
The |
Public functions
setSampleCopyEnabled
@CanIgnoreReturnValue
fun setSampleCopyEnabled(enabled: Boolean): WebmMuxer.Builder!
Sets whether to enable the sample copy.
If the sample copy is enabled, writeSampleData copies the input ByteBuffer and BufferInfo before it returns, so it is safe to reuse them immediately. Otherwise, the muxer takes ownership of the ByteBuffer and the BufferInfo and the caller must not modify them.
The default value is true.