[ANSWERED] html – Why using here (local file) chrome doesnt play the audio?

By

Nov 20, 2022

Solution 1 :

Playing audio using below HTML5 code

<audio
        controls
        src="file.mp3">
            Your browser does not support the
            <code>audio</code> element.
    </audio>

Problem :

I want play a local videos using chrome

Using <a href="file.mkv">Press here for the video</a> (file in same folder) chrome play the video unless audio. Why?

Comments

Comment posted by Hkachhia

For playing audio, you can use the HTML5 audio tag.

Comment posted by CookieJarApps

Would you like to play just the audio, just the video or both?

Comment posted by valjamwo

i would play video and audio

By