Sha256: 7051822910a74e9fc5029687e3f1ff0ecd8944a1c30e55dfaa6419a019a13a2a

Contents?: true

Size: 1.25 KB

Versions: 47

Compression:

Stored size: 1.25 KB

Contents

//= require social_stream.timeline

SocialStream.Video = (function(SS, $, undefined){
  var initJplayer = function(){
    $(".jp-video .jp-jplayer").each(function() {
      $(this).jPlayer({
        ready: function () {
          $(this).jPlayer("setMedia", {
            webmv: $(this).closest(".video").find(".video-webm").attr("href"), // Defines the webm url
            flv: $(this).closest(".video").find(".video-flv").attr("href"), // Defines the flv url
            mp4: $(this).closest(".video").find(".video-mp4").attr("href") // Defines the mp4 url
          });
        },
      solution:"flash, html",
      preload: "none",
      supplied: "webmv, flv, mp4",
      swfPath: "<%= asset_path "" %>",
      cssSelectorAncestor: "#" + $(this).closest(".video-full").attr("id")
      })
    });

    $(".video-format-links").hide();
    $(".video-full").hide();

    $(".video_thumbnail_play_over").click(function(){
      var video = $(this).closest(".video")
      video.find(".video-thumb").hide();
      video.find(".video-details").hide();
      video.find(".jp-video-play").hide();
      video.find(".video-full").show();
    video.find(".jp-jplayer").jPlayer("play", 0);
    });

  }

  SocialStream.Timeline.addInitCallback(initJplayer);


})(SocialStream, jQuery);

Version data entries

47 entries across 47 versions & 2 rubygems

Version Path
social_stream-0.30.2 documents/app/assets/javascripts/social_stream.video.js.erb
social_stream-documents-0.18.1 app/assets/javascripts/social_stream.video.js.erb
social_stream-0.30.1 documents/app/assets/javascripts/social_stream.video.js.erb
social_stream-0.30.0 documents/app/assets/javascripts/social_stream.video.js.erb
social_stream-documents-0.18.0 app/assets/javascripts/social_stream.video.js.erb
social_stream-0.29.0 documents/app/assets/javascripts/social_stream.video.js.erb
social_stream-documents-0.17.0 app/assets/javascripts/social_stream.video.js.erb
social_stream-0.28.4 documents/app/assets/javascripts/social_stream.video.js.erb
social_stream-documents-0.16.1 app/assets/javascripts/social_stream.video.js.erb
social_stream-0.28.1 documents/app/assets/javascripts/social_stream.video.js.erb
social_stream-0.28.0 documents/app/assets/javascripts/social_stream.video.js.erb
social_stream-documents-0.16.0 app/assets/javascripts/social_stream.video.js.erb
social_stream-0.27.3 documents/app/assets/javascripts/social_stream.video.js.erb
social_stream-0.27.2 documents/app/assets/javascripts/social_stream.video.js.erb
social_stream-0.27.1 documents/app/assets/javascripts/social_stream.video.js.erb
social_stream-documents-0.15.1 app/assets/javascripts/social_stream.video.js.erb
social_stream-0.27.0 documents/app/assets/javascripts/social_stream.video.js.erb
social_stream-documents-0.15.0 app/assets/javascripts/social_stream.video.js.erb
social_stream-0.26.2 documents/app/assets/javascripts/social_stream.video.js.erb
social_stream-0.26.1 documents/app/assets/javascripts/social_stream.video.js.erb