mirror of
https://github.com/samsonjs/media.git
synced 2026-04-09 11:55:46 +00:00
Currently, media is discarded from DefaultTrackOutput and SampleMetadataQueue as soon as it's been read. In upcoming changes we'll decouple discard and read. This will make it possible to retain already-read media in these buffer classes, and allow the read position to be moved backward as far as media is retained. This is important for fixing an edge case around 608/EMSG tracks, and could also underpin future features like allowing retaining of X-seconds past media in the buffer. This change renames some variables and methods to prepare for the upcoming changes. read/write indices are renamed to start/end. The upcoming changes will add a read index that's between the two. isEmpty is inverted and renamed to hasNextSample, since it will be possible to not have a next sample (because the read index == end index) but for the buffer to not be empty (because start index < read index). ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=158409630 |
||
|---|---|---|
| .. | ||
| all | ||
| core | ||
| dash | ||
| hls | ||
| smoothstreaming | ||
| ui | ||