Sha256: 81e33beda723cece5fc00e6a5b6baab9c3e0329387dc059b988307f1afcab1e3

Contents?: true

Size: 1.71 KB

Versions: 15

Compression:

Stored size: 1.71 KB

Contents

<% content_for :javascript do %>

  $("#jpId<%=audio.id%>").jPlayer( {
    ready: function () {
      $(this).jPlayer("setMedia", {        
        webma: "<%= audio_url(audio, :format => 'webma') %>" // Defines the webma url
      });
    },
    supplied: "webma",
    preload: "none",
    swfPath: "<%= asset_path("") %>",
    cssSelectorAncestor: "#jp_interface_<%=audio.id%>"
  });

<% end %>

<%= div_for audio, :class => 'content_size' do %>
<div class="audio_show">
  <% if audio.file_processing %>
  <div class="processing_text">
    <%= t('audio.processing')%>
  </div>
  <% else %>
  <div id="jpId<%= audio.id%>" class="jpId_size0"></div>
  <div class="jp-audio">
    <div class="jp-type-single">
      <div id="jp_interface_<%= audio.id%>" class="jp-interface">
        <ul class="jp-controls">
          <li>
            <a href="#" class="jp-play" tabindex="1">play</a>
          </li>
          <li>
            <a href="#" class="jp-pause" tabindex="1">pause</a>
          </li>
          <li>
            <a href="#" class="jp-stop" tabindex="1">stop</a>
          </li>
          <li>
            <a href="#" class="jp-mute" tabindex="1">mute</a>
          </li>
          <li>
            <a href="#" class="jp-unmute" tabindex="1">unmute</a>
          </li>
        </ul>
        <div class="jp-progress">
          <div class="jp-seek-bar">
            <div class="jp-play-bar"></div>
          </div>
        </div>
        <div class="jp-volume-bar">
          <div class="jp-volume-bar-value"></div>
        </div>
        <div class="jp-current-time"></div>
        <div class="jp-duration"></div>
      </div>
      <div id="jp_playlist_<%= audio.id%>" class="jp-playlist"></div>
    </div>
  </div>
</div>
<% end %>

<% end %> 

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
social_stream-1.1.12 documents/app/views/audios/_audio_show.html.erb
social_stream-documents-1.1.4 app/views/audios/_audio_show.html.erb
social_stream-1.1.11 documents/app/views/audios/_audio_show.html.erb
social_stream-documents-1.1.3 app/views/audios/_audio_show.html.erb
social_stream-1.1.10 documents/app/views/audios/_audio_show.html.erb
social_stream-documents-1.1.2 app/views/audios/_audio_show.html.erb
social_stream-1.1.9 documents/app/views/audios/_audio_show.html.erb
social_stream-1.1.8 documents/app/views/audios/_audio_show.html.erb
social_stream-2.0.0.beta1 documents/app/views/audios/_audio_show.html.erb
social_stream-documents-2.0.0.beta1 app/views/audios/_audio_show.html.erb
social_stream-1.1.7 documents/app/views/audios/_audio_show.html.erb
social_stream-1.1.6 documents/app/views/audios/_audio_show.html.erb
social_stream-1.1.5 documents/app/views/audios/_audio_show.html.erb
social_stream-1.1.4 documents/app/views/audios/_audio_show.html.erb
social_stream-documents-1.1.1 app/views/audios/_audio_show.html.erb