html5 audio - Crossorigin errors when loading VTT file -
I am new to using audio tags in HTML5 and wanted to make a player I used to write a VTT file I want to test that to see how many closed captions could work.
Here's my code:
& lt; Audio control & gt; & Lt; Source src = "myaudio.mp3" type = "audio / mpeg" & gt; & Lt; Track kink = "caption" src = "myaudio.vtt" srclang = "en" label = "english" & gt; & Lt; / Audio & gt; According to what I have read, it is considered to work for both track audio and video, which is understandable from the stand-alone accessibility point, I do not mean I load it Trying to:
'Track text from original' file: // 'has been blocked from loading: not just the document, and the mother of the track element -There is no 'CrossOrigin' attribute in the body. Origin 'blank' is not allowed therefore. " Looking at the crossingigin attribute, I get many deceptive articles about COs and get the expected value of" anonymous "and" user-certificate ". < / div>
See the browser's update list with native WebVTT support. If your browser does not support the original CC as WebVT, So you have to make them your own parser in JavaScript (Note that there are other cc formats like SRT and TTML / DFXP).
You can find more reliable information about the track element, note that in the form of subtitles, captions and descriptions The difference is.
Most browsers will not support the track tag when used with an audio tag - however in theory they want - you will get it practically today It does not work in the form that there might be anything with the Web VTT that has been described in the web video text track. If you have an audio tag If you want to display your closed captions, then you have to make your own paras. I suggest that you take a look at the source to solve it, how to deal with it.
CORS is only necessary if you are requesting CC files that are not on the same domain, audio / video tags should not be necessary in your case. more about .
Your error message indicates that there is a misconfiguration in your system (maybe your vtt file is on NFS?).
Comments
Post a Comment