Skip to content

Commit 68e4efa

Browse files
authored
Update comment for muxer thread on fragment emission
Clarified comment on emitting init segment and fragmented MP4 pairs.
1 parent 0c90aff commit 68e4efa

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

docs/publisher-api.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,10 @@ int main() {
362362

363363
// Optional: dedicated muxer thread if your muxer is not internally threaded.
364364
std::thread muxer_thread([&] {
365-
// Emit init segment first, then moof/mdat fragments containing both tracks.
365+
// Emit the init segment first, then fragmented MP4 moof/mdat pairs.
366+
// For the current live path, prefer track-separated fragments, such as
367+
// ffmpeg output generated with +separate_moof, so each moof/mdat pair
368+
// maps cleanly to one media track.
366369
// Each emitted chunk calls write_muxed_fragment(fragment_bytes).
367370
});
368371

0 commit comments

Comments
 (0)