diff --git a/src/js/mep-feature-tracks.js b/src/js/mep-feature-tracks.js index 812ae6f..91bb8f3 100644 --- a/src/js/mep-feature-tracks.js +++ b/src/js/mep-feature-tracks.js @@ -266,12 +266,8 @@ zip.workerScriptsPath = "/lib/"; t.captionsButton .find('#label_srtname')[0] .textContent = "No subtitle"; - } - $('#label_srtname').css('visibility','inherit'); - $('#select_srtname').css('visibility','hidden'); - if (player.tracks.length > 1) { - $('#label_srtname').css('visibility','hidden'); - $('#select_srtname').css('visibility','inherit'); + $('#label_srtname').css('visibility','inherit'); + $('#select_srtname').css('visibility','hidden'); } }); @@ -339,7 +335,7 @@ zip.workerScriptsPath = "/lib/"; t.tracks[0].file = data; t.tracks[0].isLoaded = false; - $('#label_srtname')[0].textContent = entry; + $('#label_srtname')[0].textContent = entry.filename; t.loadTrack(0); // close the zip reader