G
G
gameeer222018-01-29 14:20:08
JavaScript
gameeer22, 2018-01-29 14:20:08

Video.js how to add audio track without src parameter?

var track = new videojs.AudioTrack({
  id: 'my-spanish-audio-track',
  kind: 'translation',
  label: 'Spanish',
  language: 'es'
});
player.audioTracks().addTrack(track);

Here, in general, an audio track type is added, but I don’t understand where it takes it from, since there is no src parameter there,
where does it take it from? And what is the right way to add it?
from example: docs.videojs.com/docs/guides/audio-tracks.html

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question