diff --git a/apps/sandbox/templates/moq-relay-interop/index.html b/apps/sandbox/templates/moq-relay-interop/index.html index 8a058c89ed..a111fee5d7 100644 --- a/apps/sandbox/templates/moq-relay-interop/index.html +++ b/apps/sandbox/templates/moq-relay-interop/index.html @@ -93,6 +93,7 @@
+ diff --git a/packages/html/src/media/simple-moq-video/index.ts b/packages/html/src/media/simple-moq-video/index.ts index ee7b8ce664..adf26046b0 100644 --- a/packages/html/src/media/simple-moq-video/index.ts +++ b/packages/html/src/media/simple-moq-video/index.ts @@ -75,7 +75,7 @@ function isValidPreload(value: string | null): value is MoqMediaProps['preload'] * `playbackRate` (live-only), and `textTracks` (no text renderer yet). */ class SimpleMoqMediaImpl extends MoqMediaBase { - static readonly observedAttributes = ['autoplay', 'src', 'preload', 'target-latency', 'muted']; + static readonly observedAttributes = ['autoplay', 'src', 'preload', 'target-latency', 'adaptive-latency', 'muted']; static shadowRootOptions: ShadowRootInit = { mode: 'open' }; readonly #canvas: HTMLCanvasElement; @@ -106,6 +106,14 @@ class SimpleMoqMediaImpl extends MoqMediaBase { const root = this.shadowRoot!; this.#canvas = root.querySelector('canvas') ?? document.createElement('canvas'); if (!this.#canvas.isConnected) root.append(this.#canvas); + // A `` defaults to 300×150 until something draws to it; native + // `