WordPress/gutenberg

Audio Block: Autoplay does not happen on first load

Open

#22.056 aperta il 3 mag 2020

Vedi su GitHub
 (6 commenti) (0 reazioni) (0 assegnatari)JavaScript (3893 fork)batch import
Good First Issue[Block] Audio[Status] In Progress[Type] Bug

Metriche repository

Star
 (9607 star)
Metriche merge PR
 (Merge medio 12g 18h) (509 PR mergiate in 30 g)

Descrizione

Description

When the audio block is set to automatically play; it is not automatically playing on the first load. After clicking around to other pages or refreshing a few times, the audio starts to play.

To reproduce

  1. Create a page with an Audio Block, and set the audio to automatically play. Also set the Preload settings to Auto.
  2. Load the site fresh and the audio does not autoplay.
  3. Reload the site a couple of times, and the audio starts to autoplay.
  4. Clear the cache and load the site again and the audio does not autoplay.
  5. Repeat step 2 and it starts again.

Expected behavior Audio should automatically play on the site.

Editor version

  • WordPress version: current
  • Default

Desktop (please complete the following information):

  • Tested in Mac OS, using updated version of Chrome

Smartphone (please complete the following information):

  • Also appeared on iphone

Guida contributor