Шукати в статтях підтримки

Остерігайтеся нападів зловмисників. Mozilla ніколи не просить вас зателефонувати, надіслати номер телефону у повідомленні або поділитися з кимось особистими даними. Будь ласка, повідомте про підозрілі дії за допомогою меню “Повідомити про зловживання”

Learn More

Ця тема перенесена в архів. Якщо вам потрібна допомога, запитайте.

How to unblock VTT files not being loaded into HTML video pages viewed on local disk?

  • 3 відповіді
  • 1 має цю проблему
  • 762 перегляди
  • Остання відповідь від roberto32

more options

I asked this question some time back here: https://support.mozilla.org/en-US/questions/1362859 I'm asking again to reframe the question. The problem is - if my experience is a guide to the rest of the world - VTT files (which are used to caption HTML video) are no longer read/loaded by Firefox when it is viewing the HTML file locally (i.e. file://). On the web they are loaded as expected. Presumably there's a security setting somewhere in Firefox that now refuses to load the VTTs locally. Maybe under Help > More troubleshooting information there is a setting to change to fix that?

I asked this question some time back here: https://support.mozilla.org/en-US/questions/1362859 I'm asking again to reframe the question. The problem is - if my experience is a guide to the rest of the world - VTT files (which are used to caption HTML video) are no longer read/loaded by Firefox when it is viewing the HTML file locally (i.e. file://). On the web they are loaded as expected. Presumably there's a security setting somewhere in Firefox that now refuses to load the VTTs locally. Maybe under Help > More troubleshooting information there is a setting to change to fix that?

Обране рішення

Firefox supports WebVTT and vtt files and there are several media.webvtt.* prefs on the about:config page, but if these files are normally loaded from the server via JavaScript then this might not work locally. You might be able to get this work with links relative to the location of the html file or possibly open the file via a localhost web server.


  • 1499802 - [webvtt] Browser doesn't render WebVTT embedded Styles used by Voice/Class spans
Читати цю відповідь у контексті 👍 2

Усі відповіді (3)

more options

Вибране рішення

Firefox supports WebVTT and vtt files and there are several media.webvtt.* prefs on the about:config page, but if these files are normally loaded from the server via JavaScript then this might not work locally. You might be able to get this work with links relative to the location of the html file or possibly open the file via a localhost web server.


  • 1499802 - [webvtt] Browser doesn't render WebVTT embedded Styles used by Voice/Class spans

Змінено cor-el

more options

cor-el said

Firefox supports WebVTT and vtt files and there are several media.webvtt.* prefs on the about:config page, but if these files are normally loaded from the server via JavaScript then this might not work locally. You might be able to get this work with links relative to the location of the html file or possibly open the file via a localhost web server.
  • 1499802 - [webvtt] Browser doesn't render WebVTT embedded Styles used by Voice/Class spans

Thanks for the tip. I toggled the four media.webvtt.* prefs one at a time and saw nothing changed (no captions appeared but nothing broke) except in the case of media.webvtt.debug.logging where, if changed to "true", the videos don't load. The VTT files not loading off local disk is a recent "feature" of Firefox - until about v99, they did. Made testing/editing my site easy.

Змінено roberto32

more options

cor-el said

Firefox supports WebVTT and vtt files and there are several media.webvtt.* prefs on the about:config page, but if these files are normally loaded from the server via JavaScript then this might not work locally. You might be able to get this work with links relative to the location of the html file or possibly open the file via a localhost web server.
  • 1499802 - [webvtt] Browser doesn't render WebVTT embedded Styles used by Voice/Class spans

Thanks! Took your advice about setting up a local host web server. In my case it's IIS. Needed to add extensions and mime types for VTT and even mp4, but then it worked perfectly.

Змінено roberto32