Mobile app version of vmapp.org
Login or Join
Rambettina238

: Using the tag with a ".ogg" mp3 stops in Chrome when I change tracks I'm using the following code to stream audio on a web page: <audio controls autoplay="autoplay"><source src="http://example:8001/mpd.ogg"

@Rambettina238

Posted in: #Audio #GoogleChrome #Html

I'm using the following code to stream audio on a web page:

<audio controls autoplay="autoplay"><source src="http://example:8001/mpd.ogg" type="audio/mp3">

It works just well on Firefox, but on Chromium/Chrome it stops when I change the track.
So it's browser related, and doesn't have nothing to do with MPD itself.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Rambettina238

1 Comments

Sorted by latest first Latest Oldest Best

 

@Shanna517

You need to change type="audio/mp3 to type="audio/ogg.

Example -

<audio controls autoplay="autoplay"><source src="http://example:8001/mpd.ogg" type="audio/ogg">

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme