website/www/conservancy
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
..
apps Correct email addresses for copyright assignment form. 2022-05-02 08:23:24 -07:00
static Handle tricky problems to get subtitles working on intro video 2022-05-12 17:15:30 -07:00
templates Handle tricky problems to get subtitles working on intro video 2022-05-12 17:15:30 -07:00
__init__.py Apply futurize --stage-2 Python 2/3 compatibility transformations. 2021-11-30 07:55:45 +11:00
bsoup.py Apply futurize --stage-2 Python 2/3 compatibility transformations. 2021-11-30 07:55:45 +11:00
feeds.py Apply futurize --stage1 (safe) Python 2/3 compatibility changes. 2021-11-26 13:00:20 +11:00
frontpage.py Count supporters in the database - it's faster. 2021-10-13 21:20:58 +11:00
local_context_processors.py Fix Unicode encoding issues. 2021-12-03 16:01:21 +11:00
middleware.py Apply "object" changes only from futurize --stage2. 2021-11-26 13:49:40 +11:00
settings.py Revert local development settings committed. 2022-01-11 09:17:55 +11:00
sponsors.py Migrate RequestContext users to render() calls. 2017-11-07 09:00:48 -05:00
urls.py Make copyright assignment area live. 2022-05-02 08:05:02 -07:00