<%= div_for video, :class => 'content_size' do %>
<% if video.file_processing %>
<%= t('video.processing')%>
<% else %>
<% end %>
<% end %> <%= javascript_tag do %> $(function() { <% unless video.file_processing %> $("#jpId<%=video.id%>").jPlayer( { ready: function () { $(this).jPlayer("setMedia", { webmv: "<%= video_url(video, :format => 'webm' ) %>", // Defines the webm url flv: "<%= video_url(video, :format => 'flv') %>" mp4: "<%= video_url(video, :format => 'mp4') %>" }); }, solution:"flash, html", preload: "none", supplied: "webmv, flv, mp4", swfPath: "assets", cssSelectorAncestor: "#jp_interface_<%=video.id%>" }); <% end %> }); <% end %>