Skip to content

Commit

Permalink
Remove commented block
Browse files Browse the repository at this point in the history
  • Loading branch information
pie3636 committed Feb 6, 2023
1 parent d7d77f0 commit b46b76d
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions Flask_VT/static/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,21 +221,6 @@ function predictionDone(data) {
$("#vowel-id-4").html(textVowel);

// Load video from server and show as feedback

/*const video = $('#video');
const reader = new FileReader();
reader.onload = (function(video) {
return function(e) {
video.src = e.target.result;
};
})(video);
//reader.addEventListener('load', function() {
//video.play()
//});
reader.readAsDataURL('video/' + speakerGender[0].toLowerCase() + '_'
+ vowel + (vowel === 'O' || vowel === 'E' ? '_' : '') + '.mp4');*/

$('#video').attr('src', 'video/' + speakerGender[0].toLowerCase() + '_'
+ vowel + (vowel === 'O' || vowel === 'E' ? '_' : '') + '.mp4');
$("#video")[0].load();
Expand Down

0 comments on commit b46b76d

Please sign in to comment.