| Constructor and Description |
|---|
MultiDataSink(DataSink... sink) |
| Modifier and Type | Method and Description |
|---|---|
void |
release()
Called to release resources.
|
void |
setLocation(double latitude,
double longitude)
Called before starting to set the location metadata.
|
void |
setOrientation(int orientation)
Called before starting to set the orientation metadata.
|
void |
setTrackFormat(TrackType type,
android.media.MediaFormat format)
Called by
TrackTranscoders when they have an output format. |
void |
setTrackStatus(TrackType type,
TrackStatus status)
Called before starting to set the status for the given
track.
|
void |
stop()
Called when transcoders have stopped writing.
|
void |
writeTrack(TrackType type,
java.nio.ByteBuffer byteBuffer,
android.media.MediaCodec.BufferInfo bufferInfo)
Called by
TrackTranscoders to write data into this sink. |
public MultiDataSink(@NonNull
DataSink... sink)
public void setOrientation(int orientation)
DataSinksetOrientation in interface DataSinkorientation - 0, 90, 180 or 270public void setLocation(double latitude,
double longitude)
DataSinksetLocation in interface DataSinklatitude - latitudelongitude - longitudepublic void setTrackStatus(@NonNull
TrackType type,
@NonNull
TrackStatus status)
DataSinkTrackStatus.isTranscoding().setTrackStatus in interface DataSinktype - track typestatus - statuspublic void setTrackFormat(@NonNull
TrackType type,
@NonNull
android.media.MediaFormat format)
DataSinkTrackTranscoders when they have an output format.
This is not the output format chosen by the library user but rather the
output format determined by MediaCodec, which contains more information,
and should be inspected to know what kind of data we're collecting.setTrackFormat in interface DataSinktype - the track typeformat - the track formatpublic void writeTrack(@NonNull
TrackType type,
@NonNull
java.nio.ByteBuffer byteBuffer,
@NonNull
android.media.MediaCodec.BufferInfo bufferInfo)
DataSinkTrackTranscoders to write data into this sink.writeTrack in interface DataSinktype - the track typebyteBuffer - the databufferInfo - the metadatapublic void stop()
DataSink