Reputation: 138
I came across Drew Baker's froogaloop API example page: http://labs.funkhausdesign.com/examples/vimeo/froogaloop2-api-basics.html
I view and copy the exact source code on a html but when I test it locally, the API does not work, vimeo player does not play, nor alert the messages
it only works when I host the html locally with MAMP why is this ????
Thanks !
Upvotes: 2
Views: 2706
Reputation: 5353
Froogaloop doesn't work on local urls with file://
. You'll need to make your HTML available via http
. You could use the node.js http-server
to do this easily.
Install from npm:
$ npm install http-server -g
From the directory you'd like to serve:
$ http-server
Many other options exist including MAMP, Dropbox's public folder or Python's SimpleHTTPServer
Upvotes: 1
Reputation: 86413
Are you sure you're adding the &api=1
string to the video?
I don't have a Froogaloop demo handy, but I did make a demo that doesn't use Froogaloop: check it out here.
Upvotes: 3