Skip to content

Commit

Permalink
SUP-12735-Fix thumbEmbed vidSrc protocol (kaltura#3623)
Browse files Browse the repository at this point in the history
  • Loading branch information
ErezBouskila authored and OrenMe committed Nov 28, 2017
1 parent 0c7e19b commit cdc476e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kWidget/kWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -1265,7 +1265,9 @@
var newDoc = iframeElm.contentDocument;
newDoc.open();
// grab a black source
var vidSrc = location.protocol + '//www.kaltura.com/p/243342/sp/24334200/playManifest/entryId/1_vp5cng42/flavorId/1_6wf0o9n7/format/url/protocol/http/a.mp4';
var vidSrc;
var protocol = ((location.protocol && location.protocol.slice(0, -1) || "https"));
vidSrc = protocol + "://www.kaltura.com/p/243342/sp/24334200/playManifest/entryId/1_vp5cng42/flavorId/1_6wf0o9n7/format/url/protocol/"+ protocol +"/a.mp4";

// Add the iframe skeleton with video element to the iframe
newDoc.write('<html>' +
Expand Down

0 comments on commit cdc476e

Please sign in to comment.