Skip to content
This repository has been archived by the owner on Nov 10, 2020. It is now read-only.

Commit

Permalink
Bug 1397 - Vimeo should support https
Browse files Browse the repository at this point in the history
  • Loading branch information
gone authored and jbuck committed Jan 10, 2013
1 parent 1274c25 commit fc7fb67
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions wrappers/vimeo/popcorn.HTMLVimeoVideoElement.js
Expand Up @@ -4,7 +4,7 @@

CURRENT_TIME_MONITOR_MS = 16,
EMPTY_STRING = "",
VIMEO_PLAYER_URL = "http://player.vimeo.com/video/",
VIMEO_HOST = window.location.protocol + "//player.vimeo.com",

// Vimeo doesn't give a suggested min size, YouTube suggests 200x200
// as minimum, video spec says 300x150.
Expand Down Expand Up @@ -276,7 +276,7 @@
// yet seekable. We need to force a play() to get data
// to download (mimic preload=auto), or seeks will fail.
function startupMessage( event ) {
if( event.origin !== "http://player.vimeo.com" ) {
if( event.origin !== VIMEO_HOST ) {
return;
}

Expand Down Expand Up @@ -317,7 +317,7 @@
}

function onStateChange( event ) {
if( event.origin !== "http://player.vimeo.com" ) {
if( event.origin !== VIMEO_HOST ) {
return;
}

Expand Down Expand Up @@ -418,7 +418,7 @@
delete queryKey.autoplay;

// Create the base vimeo player string. It will always have query string options
src = "http://player.vimeo.com/video/" + ( /\d+$/ ).exec( src.path ) + "?";
src = VIMEO_HOST + '/video/' + ( /\d+$/ ).exec( src.path ) + "?";
for( key in queryKey ) {
if ( queryKey.hasOwnProperty( key ) ) {
optionsArray.push( encodeURIComponent( key ) + "=" +
Expand Down

0 comments on commit fc7fb67

Please sign in to comment.