FeatureFuel
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)

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests