Merges all shims into one. The index shim was just serving a single HTML, and we had an undocumented service running that forwarded to error docs. This merges both into the main shim, so we have a single deployment for compatibility. This also made it easier to clean up resources on GCP (old container images etc generated by AppEngine) because we can just delete everything and do a single redeploy to get into a minimal good state. Issue #9984
Google App Engine Demo (Compatibility Shim)
The hosted demo on https://shaka-player-demo.appspot.com/ has been shut down. This folder now contains a best-effort compatibility shim that forwards old appspot URLs to their equivalents on GitHub Pages.
This is the default version/service for the project, so App Engine routes requests for every now-deleted version subdomain (nightly-dot-, support-dot-, v2-4-7-dot-, ...) here, preserving the original Host header.
-
app.yaml: App Engine config file. Routes every request to the Flask app.
-
main.py: A Flask app that branches on the request's Host header and path and forwards old URLs to GitHub Pages. Most cases are HTTP redirects; the /demo/ paths instead render an interstitial page, because the hash fragment they rely on is never sent to the server.
-
templates/interstitial.html: The page rendered for /demo/. Its JavaScript reads the URL fragment, translates outdated demo parameters into the current format, and forwards the user to the new demo.
-
templates/index.html: A turndown notice for the archive of Shaka Player release demos and libraries that used to be hosted at the "index" subdomain. Informs users that we no longer host individual demo versions, and points them at CDNs and other services where library versions can be found.
-
requirements.txt: Used by App Engine to install the necessary Python server requirements (Flask).