If a user posts a URL to a Youtube, Dailymotion, Vine or Vimeo video, that video gets rendered directly inside of Candy.
Include the JavaScript file:
<script type="text/javascript" src="path_to_plugins/inline-videos/candy.js"></script>
<link rel="stylesheet" type="text/css" href="candyshop/inline-videos/candy.css" />
Call its init()
method after Candy has been initialized:
Candy.init('/http-bind/');
CandyShop.InlineVideos.init();
Candy.Core.connect();