c3d2-web/content/static/candy/plugins/inline-videos/README.md
2015-07-22 01:01:23 +02:00

414 B

Inline Videos Plugin

If a user posts a URL to a youtube video, that video gets rendered directly inside of Candy.

Usage

Include the JavaScript file:

<script type="text/javascript" src="path_to_plugins/inline-videos/candy.js"></script>

Call its init() method after Candy has been initialized:

Candy.init('/http-bind/');

CandyShop.InlineVideos.init();

Candy.Core.connect();