Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

144
Views
Is it possible to play multiple mp4 audio tracks at the same time?

I'm trying out the audioTracks property of the HTML video element in both Chrome and Safari (https://developer.mozilla.org/en-US/docs/Web/API/AudioTrack)

What is not clear is whether or not you can enabled multiple tracks at the same time.

In my tests I have a file with 8 audio tracks. The first one is enabled as you expect and plays just fine. I use Javascript to enabled the second track with

const videoplayer = document.getQuerySelector(".videoplayer");
videoplayer.audioTracks[1].enabled = true;

Now it begins playing the second audio track. However, the first one is no longer heard. However if I console.log the videoplayer.audioTracks I can see that the enabled property on the first track is still true.

In most cases it totally makes sense to mute all other tracks when enabled an audio track, but I'm curious why the api doesn't reflect this in the audioTracks object.

Thanks

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!