From 256576783013073f0bb615a4bcc5008f5d5ebd8c Mon Sep 17 00:00:00 2001 From: "Bradley M. Kuhn" Date: Thu, 12 May 2022 17:15:30 -0700 Subject: [PATCH] Handle tricky problems to get subtitles working on intro video MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 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 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. --- .../docs/sfc-introduction-vtt-captions.txt | 161 ++++++++++++++++++ www/conservancy/templates/frontpage.html | 2 +- .../templates/supporter/index.html | 2 +- 3 files changed, 163 insertions(+), 2 deletions(-) create mode 100644 www/conservancy/static/docs/sfc-introduction-vtt-captions.txt diff --git a/www/conservancy/static/docs/sfc-introduction-vtt-captions.txt b/www/conservancy/static/docs/sfc-introduction-vtt-captions.txt new file mode 100644 index 00000000..698f2227 --- /dev/null +++ b/www/conservancy/static/docs/sfc-introduction-vtt-captions.txt @@ -0,0 +1,161 @@ +WEBVTT + +1 +0:00:10.880 --> 0:00:15.920 +Software Freedom Conservancy is a non-profit  +organization centered around ethical technology + +2 +0:00:16.800 --> 0:00:22.560 +our mission is to ensure the right to repair  +improve and reinstall software we promote and + +3 +0:00:22.560 --> 0:00:26.560 +defend these rights through fostering  +free and open source software projects + +4 +0:00:26.560 --> 0:00:31.600 +driving initiatives that actively make technology  +more inclusive and advancing policy strategies + +5 +0:00:31.600 --> 0:00:36.720 +that defend software freedom to forward these  +goals Software Freedom Conservancy takes a three + +6 +0:00:36.720 --> 0:00:42.000 +branched approach copyleft advocacy diversity  +and inclusion and supporting alternatives + +7 +0:00:42.640 --> 0:00:47.840 +free and open source software or FOSS for short  +is software that protects your rights and freedoms + +8 +0:00:47.840 --> 0:00:51.360 +developers work hard to write FOSS and  +Software Freedom Conservancy is here + +9 +0:00:51.360 --> 0:00:56.400 +to protect and preserve your freedoms  +ensuring the right to view modify share + +10 +0:00:56.400 --> 0:01:02.080 +and use the software for any purpose free  +software like copylefted software ensures + +11 +0:01:02.080 --> 0:01:05.600 +that software stays free in the future  +as more and more people contribute to it + +12 +0:01:06.720 --> 0:01:10.960 +copyleft is a kind of software licensing  +that leverages the restrictions of copyright + +13 +0:01:10.960 --> 0:01:16.400 +but with the intent to promote sharing this helps  +consumers make sure their devices can be updated + +14 +0:01:16.400 --> 0:01:22.720 +and last longer avoiding premature obsolescence  +Software Freedom Conservancy defends your rights + +15 +0:01:22.720 --> 0:01:27.200 +as a consumer from companies who seek to deny  +these rights despite their responsibilities + +16 +0:01:28.400 --> 0:01:32.400 +Software Freedom Conservancy helps hold  +companies accountable for the software that + +17 +0:01:32.400 --> 0:01:39.840 +is included in millions of devices worldwide  +and upon which millions of consumers rely + +18 +0:01:40.480 --> 0:01:44.960 +free software is truly borderless and at  +Software Freedom Conservancy we strongly + +19 +0:01:44.960 --> 0:01:49.440 +believe that no one should be denied access to  +valuable information creating a level playing + +20 +0:01:49.440 --> 0:01:53.680 +field for everyone in our free software  +community conservancy helps by bringing to + +21 +0:01:53.680 --> 0:01:57.920 +light and providing support for historically  +excluded communities and technology spaces + +22 +0:01:58.480 --> 0:02:03.200 +in particular those subject to systemic bias  +and who are impacted by underrepresentation + +23 +0:02:06.960 --> 0:02:11.760 +in today's high-tech world reliable software is of  +the utmost importance for our daily work and play + +24 +0:02:13.120 --> 0:02:17.840 +this is why Software Freedom Conservancy is proud  +to support industry-grade software applications + +25 +0:02:17.840 --> 0:02:22.640 +that help everyone all over the world work  +and play better faster and with more freedom + +26 +0:02:23.200 --> 0:02:27.200 +FOSS applications allow you to retain  +complete control over everything you make + +27 +0:02:27.200 --> 0:02:32.320 +and they work cross-platform this not only  +makes for more cooperative working environments + +28 +0:02:32.320 --> 0:02:36.320 +but breaks down barriers imposed  +by proprietary software vendors + +29 +0:02:36.320 --> 0:02:42.400 +ensuring everyone can work freely without giving  +away their privacy autonomy or user rights + +30 +0:02:43.840 --> 0:02:49.920 +free software is your software here at software  +freedom conservancy we work towards a future where + +31 +0:02:49.920 --> 0:02:56.880 +user freedoms are the highest priority come join  +our pursuit for a better digital world this cannot + +32 +0:02:56.880 --> 0:03:03.840 +happen without you please take a moment and become  +a Software Freedom Conservancy sustainer now diff --git a/www/conservancy/templates/frontpage.html b/www/conservancy/templates/frontpage.html index 9f13388a..5a2e6c9b 100644 --- a/www/conservancy/templates/frontpage.html +++ b/www/conservancy/templates/frontpage.html @@ -48,7 +48,7 @@ strategies that defend FOSS (such as copyleft).

Software Freedom Conservancy introduction video
(watch on Youtube)

diff --git a/www/conservancy/templates/supporter/index.html b/www/conservancy/templates/supporter/index.html index f024c873..a076c5be 100644 --- a/www/conservancy/templates/supporter/index.html +++ b/www/conservancy/templates/supporter/index.html @@ -54,7 +54,7 @@