Does $('video') work with audio?
I have a webpage I wrote a few years ago that has statements such as:
-
try
-
{
-
myTextTrack = $('video').get(0).addTextTrack('metadata', 'myLabel', 'en');
-
}
-
catch(err)
-
{
-
alert(err);
-
return;
-
}
-
I tried it out recently, and it crashes with audio files like mp3's. Does 'video' not apply in that case? Would I use something like 'audio' (if it exists)?
Thanks.