mirror of
https://github.com/videojs/video.js.git
synced 2024-12-12 11:15:04 +02:00
Add HTTPS support for CDN version
This commit is contained in:
parent
77d9d34f91
commit
3e7289f244
@ -42,6 +42,7 @@ _V_ = VideoJS,
|
||||
|
||||
// CDN Version. Used to target right flash swf.
|
||||
CDN_VERSION = "GENERATED_CDN_VSN";
|
||||
ACCESS_PROTOCOL = ("https:" == document.location.protocol ? "https://" : "http://");
|
||||
|
||||
VideoJS.players = {};
|
||||
|
||||
@ -52,7 +53,7 @@ VideoJS.options = {
|
||||
// techOrder: ["flash","html5"],
|
||||
|
||||
html5: {},
|
||||
flash: { swf: "http://vjs.zencdn.net/c/video-js.swf" },
|
||||
flash: { swf: ACCESS_PROTOCOL + "vjs.zencdn.net/c/video-js.swf" },
|
||||
|
||||
// Default of web browser is 300x150. Should rely on source width/height.
|
||||
width: 300,
|
||||
@ -112,5 +113,5 @@ VideoJS.options = {
|
||||
|
||||
// Set CDN Version of swf
|
||||
if (CDN_VERSION != "GENERATED_CDN_VSN") {
|
||||
_V_.options.flash.swf = "http://vjs.zencdn.net/"+CDN_VERSION+"/video-js.swf"
|
||||
_V_.options.flash.swf = ACCESS_PROTOCOL + "vjs.zencdn.net/"+CDN_VERSION+"/video-js.swf"
|
||||
}
|
Loading…
Reference in New Issue
Block a user