Build an HTML Audio and Video Player - Build an HTML Audio and Video Player

Tell us what’s happening:

Hola, necesito ayuda con el paso 18 del laboratorio de Audio y Video. He verificado mi código repetidamente y el reproductor funciona (se escucha la música), pero el test sigue fallando con una X . He intentado reiniciar la lección, limpiar la caché y usar diferentes navegadores, pero el error persiste.

Sailing away

Your code so far

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
  <title>HTML Audio and Video Lab</title>
</head>
<body>
  <h1>Audio and Video Player</h1>
  <section>
    <h2>Audio and Video Player</h2>
    <video width="640" controls>
      <source src="https://cdn.freecodecamp.org/curriculum/labs/what-is-the-map-method-and-how-does-it-work.mp4" type="video/mp4">
    </video>
  </section>
  <section>
  <h2>Sailing away</h2>
  <audio controls loop>
    <source src="https://cdn.freecodecamp.org/curriculum/js-music-player/sailing-away.mp3" type="audio/mpeg">
  </audio>
</section>
</body>
</html>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36

Challenge Information:

Build an HTML Audio and Video Player - Build an HTML Audio and Video Player

  1. The audio element should have a src attribute pointing to an audio file.

It didn´t asked for a <source> element.

Tests are very very strict sometimes.

No solicitó un elemento <source>.

A veces, las pruebas son muy estrictas.

Muchas gracias. ese era el error.

1 Like