I want to change the audio track of a video that I am playing in html. This is my sample code.
<!DOCTYPE html>
<html>
<head>
<title>Video</title>
</head>
<body>
<video controls playsinline autoplay muted loop>
<source src="video.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
</body>
</html>
Inside the same folder, I have an audio.mp3
. I don't want to mute this video and append a hidden player and play both separately, basically I want to change the audio source. If anyone has done it, please guide me or let me know in which direction should I search? Thanks.