set api end-point explicitly to https and video base to http, only way work in chrome and ff, fix soon
This commit is contained in:
parent
5e9f216540
commit
9e798c6d30
|
@ -36,7 +36,7 @@
|
||||||
'id': 'ABC', //FIXME: throw an error if id is undefined at this point
|
'id': 'ABC', //FIXME: throw an error if id is undefined at this point
|
||||||
'layers': ['transcripts', 'descriptions', 'keywords', 'places'],
|
'layers': ['transcripts', 'descriptions', 'keywords', 'places'],
|
||||||
'keys': ['layers'], //data keys to fetch from API call. FIXME: add more apt keys
|
'keys': ['layers'], //data keys to fetch from API call. FIXME: add more apt keys
|
||||||
'api': "//pad.ma/api/", //pandora instance api end-point - see http://pad.ma/api
|
'api': "https://pad.ma/api/", //pandora instance api end-point - see http://pad.ma/api
|
||||||
'in': 0, //in point (float, in seconds) of clip
|
'in': 0, //in point (float, in seconds) of clip
|
||||||
'out': 0, //out point of clip
|
'out': 0, //out point of clip
|
||||||
'pandora_base': 'pad.ma/', //pandora instance from where to fetch video and image data
|
'pandora_base': 'pad.ma/', //pandora instance from where to fetch video and image data
|
||||||
|
@ -50,7 +50,8 @@
|
||||||
$loading = $('<div />').addClass("pandoraLoading").text("Loading video...").appendTo($this),
|
$loading = $('<div />').addClass("pandoraLoading").text("Loading video...").appendTo($this),
|
||||||
sendData = JSON.stringify({'id': id, 'keys': opts.keys});
|
sendData = JSON.stringify({'id': id, 'keys': opts.keys});
|
||||||
|
|
||||||
//get the pandora id and instantiate a pandoraVideo object with the current element and render it and execute optional callback
|
//get the pandora id and instantiate a pandoraVideo object with the current element and render it and execute optional callback
|
||||||
|
console.log(opts.api);
|
||||||
var deferred = $.post(opts.api, {'action': opts.action, 'data': sendData}, function(response) {
|
var deferred = $.post(opts.api, {'action': opts.action, 'data': sendData}, function(response) {
|
||||||
$loading.hide().remove();
|
$loading.hide().remove();
|
||||||
var pandora = new PandoraVideo(id, response.data, $this, opts);
|
var pandora = new PandoraVideo(id, response.data, $this, opts);
|
||||||
|
@ -81,7 +82,7 @@
|
||||||
this.annotPoint = -1;
|
this.annotPoint = -1;
|
||||||
this.getVideoURL = function() {
|
this.getVideoURL = function() {
|
||||||
var rand = parseInt(Math.random() * 10000);
|
var rand = parseInt(Math.random() * 10000);
|
||||||
return "//video" + rand + "." + opts.pandora_base + id + "/" + opts.resolution + ".webm";
|
return "http://video" + rand + "." + opts.pandora_base + id + "/" + opts.resolution + ".webm";
|
||||||
};
|
};
|
||||||
|
|
||||||
//empties element, appends video widget
|
//empties element, appends video widget
|
||||||
|
|
Loading…
Reference in New Issue
Block a user