Search code examples
google-chromehtml5-audio

.ogg audio file not being played in chrome 112


have an app where attached .ogg audio file , it was working fine earlier , file being loaded, play button also working but sound not being heard.

same file works fine in firefox and edge.

is there something changed in chrome or I have to enable any flag to listen ogg file?

here is sample code

<audio src="file.ogg" preload="metadata" id="audioPlayer" 
controlslist="nodownload" type="audio/ogg; codecs=opus" controls autoplay />

there is no error in console, when click on audio it show playing.


Solution

  • Apparently issue was with system, check Volume Mixer and found out that audio was muted for the chrome.