From adce4eb9ef2d7ebb4977e4ed2ab1e4fa2ad12ca3 Mon Sep 17 00:00:00 2001 From: stevenaw Date: Wed, 16 Mar 2011 08:51:59 -0400 Subject: [PATCH] [#280] Protocol check --- players/vimeo/popcorn.vimeo.html | 2 +- players/vimeo/popcorn.vimeo.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/players/vimeo/popcorn.vimeo.html b/players/vimeo/popcorn.vimeo.html index fc37b42..26534cd 100644 --- a/players/vimeo/popcorn.vimeo.html +++ b/players/vimeo/popcorn.vimeo.html @@ -126,7 +126,7 @@ Vimeo does not support their player to be chromeless (hidden controls), but custsom controls have been developed and tied into their player.
Clicking play/pause or seeking in either the video or via custsom controls will cause the other to update.
Clicking on the embed option in the Vimeo player while the video is playing will cause the video to pause and custom controls to update.
- The vimeo video can be specified in the HTML source by giving the vimeo web site url (http://vimeo.com/VIDEOID) to either the VimeoEngine or as the iframe src attribute.
+ The vimeo video can be specified in the HTML source by giving the vimeo web site url (http://vimeo.com/VIDEOID) to either the Popcorn.vimeo or as the iframe src attribute.



diff --git a/players/vimeo/popcorn.vimeo.js b/players/vimeo/popcorn.vimeo.js index 362e8ac..ec9d7a3 100644 --- a/players/vimeo/popcorn.vimeo.js +++ b/players/vimeo/popcorn.vimeo.js @@ -236,6 +236,8 @@ var ctor = function ( containerId, videoUrl ) { if ( !containerId ) { throw "Must supply an id!"; + } else if ( /file/.test( location.protocol ) ) { + throw "Must run from a web server!"; } var vidId, -- 2.43.0