Pesquisar no site de suporte

Evite golpes de suporte. Nunca pedimos que você ligue ou envie uma mensagem de texto para um número de telefone, ou compartilhe informações pessoais. Denuncie atividades suspeitas usando a opção “Denunciar abuso”.

Learn More

Mp3 file plays by URL, but fails to play in audio tag.

  • 3 respostas
  • 3 têm este problema
  • 12 visualizações
  • Última resposta de soumyadipDe

more options

This URL, when hit directly, it plays.

http://ezto-cf-media.mheducation.com/Media/Connect_Production/Externalized/Audio/13252700146307755.mp3

But when embedded in audio tag, it fails to play and firefox shows "Media resource http://ezto-cf-media.mheducation.com/Media/Connect_Production/Externalized/Audio/13252700146307755.mp3 could not be decoded. All candidate resources failed to load. Media load paused."

Audio tag is implemented as,

<audio class="audio-player" controls><source type="audio/mpeg" src="http://ezto-cf-media.mheducation.com/Media/Connect_Production/Externalized/Audio/13252700146307755.mp3"></source></audio>
This URL, when hit directly, it plays. http://ezto-cf-media.mheducation.com/Media/Connect_Production/Externalized/Audio/13252700146307755.mp3 But when embedded in audio tag, it fails to play and firefox shows "Media resource http://ezto-cf-media.mheducation.com/Media/Connect_Production/Externalized/Audio/13252700146307755.mp3 could not be decoded. All candidate resources failed to load. Media load paused." Audio tag is implemented as, <pre><nowiki><audio class="audio-player" controls><source type="audio/mpeg" src="http://ezto-cf-media.mheducation.com/Media/Connect_Production/Externalized/Audio/13252700146307755.mp3"></source></audio></nowiki></pre>

Alterado por cor-el em

Todas as respostas (3)

more options

HTML is used as below.

<audio class="audio-player" controls> <source type="audio/mpeg" src="http://ezto-cf-media.mheducation.com/Media/Connect_Production/Externalized/Audio/13252700146307755.mp3"></source></audio>

Alterado por cor-el em

more options

I'm not sure what kind of file this is because the Network Monitor shows it as type audio/x-wav when used with the audio tag. When the URL is loaded via the location bar then the Network Monitor shows audio/mpeg. The decoder used with the audio tag might not recognize the file correctly.

more options

The "Content-type" in response header shows "audio/mpeg". Can you please let me know where you are seeing "audio/x-wav". Attaching screenshot.

Thanks