Avatar for Username

ძიება მხარდაჭერაში

ნუ გაებმებით თაღლითების მახეში მხარდაჭერის საიტზე. აქ არასდროს მოგთხოვენ სატელეფონო ნომერზე დარეკვას, შეტყობინების გამოგზავნას ან პირადი მონაცემების გაზიარებას. გთხოვთ, გვაცნობოთ რამე საეჭვოს შემჩნევისას „დარღვევაზე მოხსენების“ მეშვეობით.

Learn More

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

  • 3 პასუხი
  • 3 მომხმარებელი წააწყდა მსგავს სიძნელეს
  • 10 ნახვა
  • ბოლოს გამოეხმაურა soumyadipDe

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>

ჩასწორების თარიღი: , ავტორი: cor-el

ყველა პასუხი (3)

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>

ჩასწორების თარიღი: , ავტორი: cor-el

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.

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