You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Title: Front components: allow setting playbackRate on <audio>
#30491
▎ What happens: The host passes only a fixed list of props to the real of a front component (hidden,
▎ inert, aria-hidden, controls, autoPlay, loop, muted, src, preload, media events, ref, children).
▎ playbackRate is not on it, so a component cannot change the playback speed.
▎
▎ Steps to reproduce:
▎ 1. In a front component, render , or set el.playbackRate = 2 in
▎ a ref callback or in onLoadedMetadata.
▎ 2. Play the file and read audio.playbackRate and audio.currentTime in the page.
▎
▎ Result: audio.playbackRate stays 1 and the file plays at normal speed. Setting playbackRate = 2 directly on
▎ the element in the page works (3.92 s of audio in 2 s).
▎
▎ Expected: playbackRate and defaultPlaybackRate are passed through to audio and video, so an app can offer
▎ 1.5x or 2x playback.
▎
▎ Version: Twenty 2.56.1 (local server)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
▎ What happens: The host passes only a fixed list of props to the real of a front component (hidden,
▎ inert, aria-hidden, controls, autoPlay, loop, muted, src, preload, media events, ref, children).
▎ playbackRate is not on it, so a component cannot change the playback speed.
▎
▎ Steps to reproduce:
▎ 1. In a front component, render , or set el.playbackRate = 2 in
▎ a ref callback or in onLoadedMetadata.
▎ 2. Play the file and read audio.playbackRate and audio.currentTime in the page.
▎
▎ Result: audio.playbackRate stays 1 and the file plays at normal speed. Setting playbackRate = 2 directly on
▎ the element in the page works (3.92 s of audio in 2 s).
▎
▎ Expected: playbackRate and defaultPlaybackRate are passed through to audio and video, so an app can offer
▎ 1.5x or 2x playback.
▎
▎ Version: Twenty 2.56.1 (local server)
All reactions