Coconut.co integration

Coconut.co library

To use this library you must create an account at http://www.coconut.co

Fill in API key in that you may find in your Coconut account. You will also need to provide upload/download paths. Typically this will be FTP path to your 'uploads' folder where software stores your users videos. It should look like this:

ftp://ftp_username:ftp_password@yourdomain.com/path_to_uploads_folder

You need to use your own username/password/etc in the URL of course. Spaces, punctuation and other characters are not allowed in the username, password and, folder path. Refer to w3schools' URL encoding page for a complete list and to encode those characters if you have them. Be sure to check if your URL works by opening it in the browser. If it opens and you see a list of folders/files in the "uploads" folder, it means it works and you may use.

If you use a remote service to store your user files (such as Amazon S3), you will need to specify the upload/download paths for that particular service. For example, Amazon's S3 will look something like this:

https://s3.your_region.amazonaws.com/bucket_name/optional_folder/

The upload path will look like this:

s3://access_key:secret_key@bucket_name/optional_folder/

See Coconut's documentation for other available options.