How to add subtitles to jwplayer online6/12/2023 This article also shows how this API can be used to detect what captions/subtitles have been added to a HTML5 video, and how that data can be used to build a selectable menu of available text tracks and ultimately provide a more consistent interface across the various browsers. Most major browsers support this natively to varying degrees, which the first part of this article shows, but it also provides a JavaScript API, with which we can access and use the text tracks (e.g. ![]() Thankfully HTML5 also provides us with a native way of making our media content more accessible by adding subtitles and captions via the element. ![]() Making our content accessible to all is an important step, be it for someone who is hard of hearing or someone who doesn’t understand the language that the content is delivered in, inclusion can be paramount. As responsible web developers, we should also be constantly thinking about making our content more accessible, and this doesn’t stop with video and audio content. We also have a JavaScript API that allows us to interact with this media content in different ways, be it writing our own controls or simply seeing how long a video file is. With the introduction of the and elements to HTML5, we finally have a native way to add video and audio to our websites.
0 Comments
Leave a Reply. |