Skip to content
This repository has been archived by the owner on May 21, 2018. It is now read-only.

Feature/video substitution #106

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

Laurian
Copy link
Contributor

@Laurian Laurian commented Sep 27, 2016

If saveDataUrl starts with https://archive.org, probe for .mp4 video with HTTP HEAD and alter the tracks to use that video as cached composition.

@@ -478,10 +478,96 @@ function init() {
resizeHandler.resize();
window.addEventListener( "resize", resizeHandler.resize );

function preprocess(json, callback) {
if (!json || !json.media) return callback(json);
if (!config.savedDataUrl.startsWith('https://archive.org')) return callback(json);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't these two if clauses be merged into one?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yup, done: fcd7913

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants