Segment

class Segment(tracks: List<Track>, movieBoxFactory: AbstractMovieBoxFactory, onNewSample: (ByteBuffer) -> Unit)

A class that represent a single segment: MOOV + MDAT or a single fragment: MOOF + MDAT.

Constructors

Link copied to clipboard
constructor(tracks: List<Track>, movieBoxFactory: AbstractMovieBoxFactory, onNewSample: (ByteBuffer) -> Unit)

Properties

Link copied to clipboard
Link copied to clipboard

True if this segment is a fragment (MOOF + MDAT).

Functions

Link copied to clipboard
fun add(frame: Frame, streamPid: Int)
Link copied to clipboard
fun getFirstTimestamp(streamPid: Int): Long
Link copied to clipboard
fun write(dataOffset: Long)