~hristoast/mousikofidi

mousikofidi/mousikofidi/templates/video_player.html -rw-r--r-- 4.3 KiB
60039fd3Hristos N. Triantafillou Don't blow up when there's no cover art 27 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<div id="video-player" class="center{% if page_name == "Your Queue" %} hidden{% endif %}">
  <div data-nowplaying-num="0" id="video-now-playing-num"></div>
  <div data-randorder="none" id="vid-randorder"></div>
  <div data-playback-ended="false" id="video-playback-ended"></div>
  <video src="" poster="{{ logo_path }}" id="video"{% if autoplay %} autoplay{% endif %}{% if preload_video %} preload="auto"{% endif %} controls>
    <source>
    <p>Your browser doesn't support HTML5 video.</p>
  </video>
  <div id="videoplayer"></div>
  <div class="mobile-hide">

    {% if icons %}
      <button data-cmd="prev" id="vid-prev" title="Click to skip to the previous track in the list.">
        <i class="fas fa-step-backward"></i> Previous
      </button>
      <button class="with-icons" data-stat="off" id="vid-repeat" title="Click to toggle between no repeat, repeat one track, and repeat all tracks.">
        No Repeat<span class="fa-stack"><i class="fas fa-redo fa-stack-1x"></i><i class="fas fa-slash fa-stack-1x"></i></span>
      </button>
      <button class="with-icons" data-stat="off" id="vid-shuffle" title="Click to toggle between a shuffled track order on and off.">
        Shuffle Off<span class="fa-stack"><i class="fas fa-random fa-stack-1x"></i><i class="fas fa-slash fa-stack-1x"></i></span>
      </button>
      <button data-cmd="fwd" id="vid-next" title="Click to skip to the next track in the list.">
        Next <i class="fas fa-step-forward"></i>
      </button>

    {% else %}
      <button data-cmd="prev" id="vid-prev" title="Click to skip to the previous track in the list.">Previous</button>
      <button data-stat="off" id="vid-repeat" title="Click to toggle between no repeat, repeat one track, and repeat all tracks.">No Repeat</button>
      <button data-stat="off" id="vid-shuffle" title="Click to toggle between a shuffled track order on and off.">Shuffle Off</button>
      <button data-cmd="fwd" id="vid-next" title="Click to skip to the next track in the list.">Next</button>

    {% endif %}
  </div>

  <div class="mobile-show">
    <div>
      <button data-cmd="prev" id="mobile-vid-prev" title="Click to skip to the previous track in the list.">{% if icons %}<i class="fas fa-step-backward"></i> {% endif %}Previous</button>
      <button data-cmd="fwd" id="mobile-vid-next" title="Click to skip to the next track in the list.">Next{% if icons %} <i class="fas fa-step-forward"></i>{% endif %}</button>
    </div>
    <div>
      <button data-stat="off" id="mobile-vid-repeat" title="Click to toggle between no repeat, repeat one track, and repeat all tracks.">No Repeat{% if icons %}<span class="fa-stack"><i class="fas fa-redo fa-stack-1x"></i><i class="fas fa-slash fa-stack-1x"></i></span>{% endif %}</button>
      <button data-stat="off" id="mobile-vid-shuffle" title="Click to toggle between a shuffled track order on and off.">Shuffle Off{% if icons %}<span class="fa-stack"><i class="fas fa-random fa-stack-1x"></i><i class="fas fa-slash fa-stack-1x"></i></span>{% endif %}</button>
    </div>
  </div>

  <div>
    <p id="video-now-playing" title="The status of the current track.">Paused: <span class="bold" id="video-playing-title" title="The title of the current track."></span></p>
  </div>

  <div>
    <button id="video-volume-minus" title="Click this to raise the player volume.">Vol-</button>
    <div class="vol-meter">
      <input id="video-volume-meter" type="range" step="1" min="0" max="100" title="The player's volume level. Click or drag to adjust, or use the control buttons.">
    </div>
    <button id="video-volume-plus" title="Click this to lower the player volume.">Vol+</button>
  </div>


  <div id="vtv">
    {% if icons %}
      <button class="with-icons" data-stat="off" id="video-theater-view" title='Click this button to toggle "theater view" on the video player.'>Theater View: Off<span class="fa-stack"><i class="fas fa-theater-masks fa-stack-1x"></i><i class="fas fa-slash fa-stack-1x"></i></span></button>
    {% else %}
      <button data-stat="off" id="video-theater-view" title='Click this button to toggle "theater view" on the video player.'>Theater View: Off</button>
    {% endif %}
  </div>
  {% if link_button %}
    <button id="video-time-link" title="Click this button to have a link to this track at the current time put into your clipboard.">Current Time Link{% if icons %} <i class="fas fa-link"></i>{% endif %}</button>
  {% endif %}
</div>