1
Title: Front components: allow setting playbackRate on <audio>
Source: twentyhq/twenty#30491 · opened by @manageNL
▎ What happens: The host passes only a fixed list of props to the real <audio> 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 <audio autoPlay src={url} playbackRate={2} />, 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)
▎ 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 <audio autoPlay src={url} playbackRate={2} />, 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)
No pledges yet. Be the first to back this.
Comments
Similar requests
Sign in with the identity from an authenticating proxy (Cloudflare Access, IAP, ...)
1 vote · 0 comments
Add conditional field formatting for numeric table and record fields
3 votes · 0 comments
Meeting Bot
2 votes · 0 comments
Reactive record updates in front components
1 vote · 0 comments
Configurable record side-panel width
0 votes · 0 comments
No comments yet.