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

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.


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.

3 participants