This commit is contained in:
Ashley 2022-08-23 16:22:59 +02:00
parent d4b92acd65
commit 7bb2539a36

View file

@ -243,11 +243,14 @@ border-radius: 5px;
<div class="video-player-container">
<video class="player" id="<%=sha384(video.id)%>" style="border-radius: 16px;" autoplay controls src="<%=url%>" poster="https://p.poketube.fun/https://i.ytimg.com/vi/<%=video.id%>/maxresdefault.jpg?v=607ddcd4">
<% if ( video.Subtitles.Subtitle) { %>
<% if (Array.isArray( video.Subtitles.Subtitle)) { %>
<% if ( video.Subtitles.Subtitle) { %>
<% video.Subtitles.Subtitle.forEach(x => { %><track src="/api/subtitles?v=<%=video.id%>&h=<%= x.language %>" label="<%= x.language %>" kind="subtitles">
<% }) %>
<% } %>
<% } %>
<% } %>
</video><img src="https://t.poketube.fun/t/rep.gif?video=<%=btoa(video.id)%>" style="border:0;width: 0;visibility: hidden;" id="video">
<div style="display: flex;justify-content: center;align-items: center;flex-direction: row; column-gap: 3px;" align="center">
@ -688,6 +691,14 @@ summary:hover{
<div class="primary">
<div class="video-player-container">
<video class="player" autoplay style="border-radius: 16px;" controls src="<%=url%>" poster="https://i.ytimg.com/vi/<%=video.id%>/hqdefault.jpg?v=607ddcd4">
<% if (Array.isArray( video.Subtitles.Subtitle)) { %>
<% if ( video.Subtitles.Subtitle) { %>
<% video.Subtitles.Subtitle.forEach(x => { %><track src="/api/subtitles?v=<%=video.id%>&h=<%= x.language %>" label="<%= x.language %>" kind="subtitles">
<% }) %>
<% } %>
<% } %>
</video>
</div>
<div class="video-info">
@ -879,4 +890,3 @@ summary:hover{
</html>
</body>
<% } %>