mirror of
https://github.com/videojs/video.js.git
synced 2024-12-27 02:43:45 +02:00
Updating SSL support for new VJS
This commit is contained in:
parent
df2fc221e3
commit
c6e23d772a
@ -57,7 +57,8 @@ vjs = function(id, options, ready){
|
||||
var videojs = vjs;
|
||||
|
||||
// CDN Version. Used to target right flash swf.
|
||||
var CDN_VERSION = 'GENERATED_CDN_VSN';
|
||||
vjs.cdn_version = 'GENERATED_CDN_VSN';
|
||||
vjs.access_protocol = ("https:" == document.location.protocol ? "https://" : "http://");
|
||||
|
||||
/**
|
||||
* Global Player instance options
|
||||
@ -71,7 +72,7 @@ vjs.options = {
|
||||
// techOrder: ['flash','html5'],
|
||||
|
||||
'html5': {},
|
||||
'flash': { swf: 'http://vjs.zencdn.net/c/video-js.swf' },
|
||||
'flash': { swf: vjs.access_protocol + 'vjs.zencdn.net/c/video-js.swf' },
|
||||
|
||||
// Default of web browser is 300x150. Should rely on source width/height.
|
||||
'width': 300,
|
||||
@ -99,6 +100,6 @@ vjs.players = {};
|
||||
|
||||
|
||||
// Set CDN Version of swf
|
||||
if (CDN_VERSION != 'GENERATED_CDN_VSN') {
|
||||
videojs.options['flash']['swf'] = 'http://vjs.zencdn.net/'+CDN_VERSION+'/video-js.swf';
|
||||
if (vjs.cdn_version != 'GENERATED_CDN_VSN') {
|
||||
videojs.options['flash']['swf'] = vjs.access_protocol + 'vjs.zencdn.net/'+vjs.cdn_version+'/video-js.swf';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user