website/www
Bradley M. Kuhn 2565767830 Handle tricky problems to get subtitles working on intro video
First and foremost, the mime type has to be supported by the web
server.  Either you have to add a `.vtt` mimetype, *or* just put it
as a `.txt` file.  I chose the latter since it doesn't require a
custom Apache configuration.

Second, even if you make it a `.txt` file, using a CDN does not seem
to work.  I suspect that maybe CDNs do really weird things with
mimetypes when they server them, or maybe the <track> element just
really doesn't like it when the URL is 301'd. 🤷

Anyway, with these two changes: using a `.txt` file, and hosting the
file locally, the subtitles now work properly!

Note, if you use the `default` attribute in the <track> tag, it'll
turn them on by default.  Leaving it off does allow the user to turn
them on in my tests in both Chromium and Firefox.
2022-05-12 17:15:30 -07:00
..
conservancy Handle tricky problems to get subtitles working on intro video 2022-05-12 17:15:30 -07:00
conservancy_ssl_wrapper.py First pass at migration to Django 1.7 2015-03-03 18:40:18 +00:00
conservancy_wrapper.py First pass at migration to Django 1.7 2015-03-03 18:40:18 +00:00
manage.py manage.py: New file. 2018-11-18 14:39:18 -05:00
modpythoncustom.py Apply futurize --stage-2 Python 2/3 compatibility transformations. 2021-11-30 07:55:45 +11:00
wsgicustom.wsgi wsgicustom: Import _strptime to avoid race conditions later. 2018-11-02 09:38:03 -04:00