1 {% load i18n l10n catalogue_tags %}
3 {% with audiobooks=book.get_audiobooks %}
4 <div class="c-media__player" id="jp_container_{{ book.pk }}" data-book-slug="{{ book.slug }}">
5 <div class="jp-jplayer" data-player="jp_container_{{ book.pk }}"
6 data-supplied="oga,mp3"></div>
9 <div class="c-player__btns">
10 <button class="play-prev"><i class="icon icon-prev"></i></button>
11 <button class="c-player__btn--md jp-play"><i class="icon icon-play"></i></button>
12 <button class="play-next"><i class="icon icon-next"></i></button>
15 <i class="icon icon-eye"></i>
18 <!-- div class="c-select speed">
20 <li data-speed="2">2×</li>
21 <li data-speed="1.75">1.75×</li>
22 <li data-speed="1.5">1.5×</li>
23 <li data-speed="1.25">1.25×</li>
24 <li data-speed="1" class="is-active">1×</li>
25 <li data-speed="0.75">0.75×</li>
26 <li data-speed="0.5">0.5×</li>
32 <div class="c-player__info"></div>
33 <div class="c-player__chapters">
34 {% if audiobooks.0|length > 1 %}
35 <span>Rozdziały</span>
37 <ul class="jp-playlist">
39 {% for i in audiobooks.0 %}
41 data-mp3='{{ i.mp3.file.url }}'
42 data-ogg='{{ i.ogg.file.url }}'
43 data-media-id="{{ i.mp3.id }}"
44 data-duration="{{ i.mp3.duration }}"
46 {% with extra_info=i.mp3.get_extra_info_json %}
50 <span class="attribution">
51 {% trans "Artist:" %} <span class='artist'>{{ extra_info.artist_name }}</span>,
52 {% trans "director:" %} <span class='director'>{{ extra_info.director_name }}</span>
54 <span class="license">
55 {% if extra_info.license %}{% license_icon extra_info.license %}{% endif %}
57 <span class="project-icon">
58 {% if i.mp3.project_icon %}<img class="project-icon" src="{{ i.mp3.project_icon }}">{% endif %}
60 <span class="project-description">
61 {% if i.mp3.project_description %}{{ i.mp3.project_description }}{% else %}
62 {% with fb=extra_info.funded_by %}
63 {% if fb %}Dofinansowano ze środków: {{ fb }}.{% endif %}
73 <div class="c-player__timeline">
75 <span class="jp-seek-bar">
76 <span class="jp-play-bar"></span>
80 <time class="c-player__length">
81 <span class="jp-current-time"></span>
82 <span class="time-left">
84 <span class="total-time-left">?</span>
88 <div class="c-player__volume">
89 <i class="icon icon-volume jp-mute"></i>
90 <span class="jp-volume-bar">
91 <span class="jp-volume-bar-value">