Skip to content

Commit 48ef53f

Browse files
committed
refactor: improve comment
1 parent 5d0d109 commit 48ef53f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • src/entry-points/content/cloneMediaSources

src/entry-points/content/cloneMediaSources/lib.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -567,6 +567,8 @@ function makeMaintainedMediaSourceClone(
567567
// TODO fix: this throws if one or more of the `SourceBuffer`s are `.updating === true`.
568568
// https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/endOfStream#exceptions
569569
// M8, how am I supposed to track that?
570+
// Perhaps need a function like `execWhenSourceBufferReady`, but
571+
// `execWhenAllSourceBuffersReady(mediaSource, fn)`
570572
cloneMSOpenP.then(cloneMS => {
571573
VERBOSE_LOGGING &&
572574
console.log("⬅️ executing on clone", originalMS, "endOfStream", params);

0 commit comments

Comments
 (0)