0

Why does video-js setup guide use an absolute path to refer to video-js.swf and not a relative path?

<link href="//example.com/path/to/video-js.css" rel="stylesheet">
<script src="//example.com/path/to/video.js"></script>
<script>
  videojs.options.flash.swf = "http://example.com/path/to/video-js.swf"
</script>

The setup guide offers no explanation!

1 Answer 1

1

That would seem to be an inconsistency. You should submit a bug.

The main library urls use protocol-relative URLs to avoid security issues, and the swf should probably be the same.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.