How to switch audio and subtitle tracks with buttons in a YouTube video using IFrame API?
I am working on a webpage that uses JavaScript to embed a YouTube video with multiple language audio tracks (MLA) and subtitles. My example video ID is PWirijQkH4M
. I want to allow users to switch audio tracks with one button and switch subtitles with another button.