]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
[#280] Protocol check
authorstevenaw <sweerdenburg@gmail.com>
Wed, 16 Mar 2011 12:51:59 +0000 (08:51 -0400)
committerstevenaw <sweerdenburg@gmail.com>
Wed, 16 Mar 2011 12:51:59 +0000 (08:51 -0400)
players/vimeo/popcorn.vimeo.html
players/vimeo/popcorn.vimeo.js

index fc37b42111b1a4ea9d0610e5b63137ed7cd13629..26534cdb501c65313550ea6996f9e5d4376a1a89 100644 (file)
               Vimeo does not support their player to be chromeless (hidden controls), but custsom controls have been developed and tied into their player.<br />
               Clicking play/pause or seeking in either the video or via custsom controls will cause the other to update.<br />
               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.<br />
-              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.<br/>
+              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.<br/>
             </p>
             <br />
             <br />
index 362e8ac66a2a7abce01ff143cfcffa0e14b4a3d5..ec9d7a3653d39262092b14e8c8a79b0344b57cc9 100644 (file)
     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,