We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7943710 commit c638bbaCopy full SHA for c638bba
src/TitanVideo/TitanVideo.js
@@ -186,7 +186,7 @@ function TitanVideo(options) {
186
187
return Array.from(videoElement.textTracks)
188
.filter(function(track) {
189
- return track.kind === 'subtitles'
+ return track.kind === 'subtitles';
190
})
191
.map(function(track, index) {
192
return Object.freeze({
@@ -474,7 +474,7 @@ function TitanVideo(options) {
474
case 'selectedAudioTrackId': {
475
if (stream !== null) {
476
for (var index = 0; index < videoElement.audioTracks.length; index++) {
477
- videoElement.audioTracks[i].enabled = !!('EMBEDDED_' + String(index) === propValue)
+ videoElement.audioTracks[index].enabled = !!('EMBEDDED_' + String(index) === propValue);
478
}
479
480
0 commit comments