Sha256: e5a42cd36c79ec4bde99e683b3ab2e492ca58b406d117f8316a51164f2221d5d
Contents?: true
Size: 910 Bytes
Versions: 20
Compression:
Stored size: 910 Bytes
Contents
//= require social_stream/callback SocialStream.Video = (function(SS, $, undefined){ var callback = new SS.Callback(); var initJplayer = function(){ $(".jp-video .jp-jplayer").each(function() { var container = $(this).closest('.video-container'); $(this).jPlayer({ ready: function () { $(this).jPlayer("setMedia", { webmv: container.attr("data-url-webm"), flv: container.attr("data-url-flv"), mp4: container.attr("data-url-mp4"), poster: container.attr("data-url-poster") }); }, solution:"flash, html", preload: "none", supplied: "webmv, flv, mp4", swfPath: container.attr('data-url-swfplayer'), cssSelectorAncestor: "#" + container.attr("id") }) }); } callback.register('show', initJplayer); return callback.extend({ }); })(SocialStream, jQuery);
Version data entries
20 entries across 20 versions & 2 rubygems