There was an error while loading. Please reload this page.
1 parent 5d0d109 commit 48ef53fCopy full SHA for 48ef53f
1 file changed
src/entry-points/content/cloneMediaSources/lib.ts
@@ -567,6 +567,8 @@ function makeMaintainedMediaSourceClone(
567
// TODO fix: this throws if one or more of the `SourceBuffer`s are `.updating === true`.
568
// https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/endOfStream#exceptions
569
// M8, how am I supposed to track that?
570
+ // Perhaps need a function like `execWhenSourceBufferReady`, but
571
+ // `execWhenAllSourceBuffersReady(mediaSource, fn)`
572
cloneMSOpenP.then(cloneMS => {
573
VERBOSE_LOGGING &&
574
console.log("⬅️ executing on clone", originalMS, "endOfStream", params);
0 commit comments