diff --git a/static/videoOverlay.js b/static/videoOverlay.js index 9acc739..fe1500b 100644 --- a/static/videoOverlay.js +++ b/static/videoOverlay.js @@ -20,7 +20,7 @@ function getEmbedURL(id, videoURL) { points = parts[parts.length - 1].split(','), outPoint = points.pop(), inPoint = points.pop(); - return parsed.origin + '/' + item + '/embed?view=player&id=' + id + return parsed.protocol + '//' + parsed.host + '/' + item + '/embed?view=player&id=' + id + '&in=' + inPoint + '&out=' + outPoint + '&paused=false&showCloseButton=true'; }