setChapters
Chapters for the output, each with its title and its other tags. Call this before any frame or packet is written. The bounds are on the output's own timeline, whose zero is the earliest source time the output shows: the earliest presentation time of the copied audio and video, counting the samples a stream skips at its start, or the first encoded frame when that is earlier. A caller copying chapters from a MediaSource subtracts that time. For a copy cut between keyframes it is the keyframe before the cut, not the cut itself. A chapter Chapter.id only has to be unique within the list.
Chapters for the output, each with its title and its other tags. Call this before any frame or packet is written. The bounds are on the output's own timeline, whose zero is the earliest source time the output shows: the earliest presentation time of the copied audio and video, counting the samples a stream skips at its start, or the first encoded frame when that is earlier. A caller copying chapters from a MediaSource subtracts that time. For a copy cut between keyframes it is the keyframe before the cut, not the cut itself. A chapter Chapter.id only has to be unique within the list.
Chapters for the output, each with its title and its other tags. Call this before any frame or packet is written. The bounds are on the output's own timeline, whose zero is the earliest source time the output shows: the earliest presentation time of the copied audio and video, counting the samples a stream skips at its start, or the first encoded frame when that is earlier. A caller copying chapters from a MediaSource subtracts that time. For a copy cut between keyframes it is the keyframe before the cut, not the cut itself. A chapter Chapter.id only has to be unique within the list.
Chapters for the output, each with its title and its other tags. Call this before any frame or packet is written. The bounds are on the output's own timeline, whose zero is the earliest source time the output shows: the earliest presentation time of the copied audio and video, counting the samples a stream skips at its start, or the first encoded frame when that is earlier. A caller copying chapters from a MediaSource subtracts that time. For a copy cut between keyframes it is the keyframe before the cut, not the cut itself. A chapter Chapter.id only has to be unique within the list.