mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-16 23:34:40 -05:00
Merge branch 'main' into videojs
This commit is contained in:
commit
92543510a6
1 changed files with 32 additions and 18 deletions
|
@ -383,6 +383,9 @@ a[data-onclick="jump_to_time"] {
|
||||||
<script src="https://vjs.zencdn.net/8.16.1/video.min.js"></script>
|
<script src="https://vjs.zencdn.net/8.16.1/video.min.js"></script>
|
||||||
<!-- css files end -->
|
<!-- css files end -->
|
||||||
|
|
||||||
|
<link href="https://vjs.zencdn.net/8.16.1/video-js.css" rel="stylesheet" />
|
||||||
|
<script src="https://vjs.zencdn.net/8.16.1/video.min.js"></script>
|
||||||
|
|
||||||
<% if (k.Video.Channel.Name == "7clouds") { %>
|
<% if (k.Video.Channel.Name == "7clouds") { %>
|
||||||
<style>
|
<style>
|
||||||
@font-face {
|
@font-face {
|
||||||
|
@ -616,7 +619,9 @@ background-color: #0000;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</noscript>
|
</noscript>
|
||||||
|
<script>
|
||||||
|
|
||||||
|
</script>
|
||||||
<% if(shortsui) { %>
|
<% if(shortsui) { %>
|
||||||
<script>
|
<script>
|
||||||
// Function to apply styles after DOM has loaded
|
// Function to apply styles after DOM has loaded
|
||||||
|
@ -765,16 +770,24 @@ background-color: #0000;
|
||||||
</script>
|
</script>
|
||||||
<ptd-app-iconfixer>
|
<ptd-app-iconfixer>
|
||||||
<script>
|
<script>
|
||||||
// Preload the icon image
|
document.addEventListener('DOMContentLoaded', function() {
|
||||||
var iconImage = new Image();
|
var player = videojs('video');
|
||||||
iconImage.src = "/css/yt-ukraine.svg";
|
|
||||||
|
|
||||||
// Wait for the icon image to load before showing it
|
<% if (!qua) { //TODO - a %>
|
||||||
iconImage.onload = function() {
|
|
||||||
var iconElement = document.querySelector('link[rel="icon"]');
|
var sources = player.currentSources();
|
||||||
iconElement.href = iconImage.src;
|
|
||||||
iconElement.type = "image/svg+xml";
|
// Add the new audio source
|
||||||
};
|
sources.push({
|
||||||
|
type: 'audio/mp3',
|
||||||
|
src: '<%=u%>/latest_version?id=<%=inv_vid.videoId%>&itag=140&local=true'
|
||||||
|
});
|
||||||
|
|
||||||
|
// Set the updated source list
|
||||||
|
player.src(sources);
|
||||||
|
<% } else { %>
|
||||||
|
<% } %>
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
</ptd-app-iconfixer>
|
</ptd-app-iconfixer>
|
||||||
<ptd-app-ejs>
|
<ptd-app-ejs>
|
||||||
|
@ -896,7 +909,7 @@ if your domain matches this code you are probably in poketube.fun owo:3
|
||||||
<div class="video-title" style="color:var(--text-color);font-family:var(--text-font-primary);;font-weight:var(--text-header-weight);font-stretch: extra-expanded;margin-top: 0px;margin-bottom: -3px;font-size: larger;line-height: 20.7px;text-align: center;">Options</div>
|
<div class="video-title" style="color:var(--text-color);font-family:var(--text-font-primary);;font-weight:var(--text-header-weight);font-stretch: extra-expanded;margin-top: 0px;margin-bottom: -3px;font-size: larger;line-height: 20.7px;text-align: center;">Options</div>
|
||||||
<a href="/customize" style="text-decoration: none;" class="dropdown__item">
|
<a href="/customize" style="text-decoration: none;" class="dropdown__item">
|
||||||
<i class="fa-light fa-brush"></i>
|
<i class="fa-light fa-brush"></i>
|
||||||
Customize PokeTube
|
Customize Poke
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<a href="/account-create" style="text-decoration: none;" class="dropdown__item">
|
<a href="/account-create" style="text-decoration: none;" class="dropdown__item">
|
||||||
|
@ -1047,7 +1060,7 @@ Offical Discord Server! :3
|
||||||
|
|
||||||
<div id="<%=sha384(inv_vid.videoId)%>" class="video-player-container">
|
<div id="<%=sha384(inv_vid.videoId)%>" class="video-player-container">
|
||||||
|
|
||||||
|
|
||||||
<noscript>
|
<noscript>
|
||||||
<% if (!qua) { %>
|
<% if (!qua) { %>
|
||||||
<div id="nojs-high-res-warning" class="error-card">
|
<div id="nojs-high-res-warning" class="error-card">
|
||||||
|
@ -1055,7 +1068,8 @@ Offical Discord Server! :3
|
||||||
</div>
|
</div>
|
||||||
<% } %>
|
<% } %>
|
||||||
</noscript>
|
</noscript>
|
||||||
<video class="video-js player video-ambient-container" id="video" style="border-radius: 16px; box-sizing: border-box; min-width: 100%; display: block;" autoplay preload onerror="showErrorCard(event)">
|
|
||||||
|
<video class="video-js player video-ambient-container" id="video" style="border-radius: 16px; box-sizing: border-box; min-width: 100%; display: block;" autoplay controls>
|
||||||
<% if (isvidious) { %>
|
<% if (isvidious) { %>
|
||||||
<% if (!qua) { %>
|
<% if (!qua) { %>
|
||||||
<%
|
<%
|
||||||
|
@ -1066,12 +1080,11 @@ Offical Discord Server! :3
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
%>
|
%>
|
||||||
<% if (!qua) { //TODO - a %>
|
|
||||||
<source src="<%=u%>/latest_version?id=<%=inv_vid.videoId%>&itag=140&local=true" type="audio/ogg"/>
|
|
||||||
<% } else { %>
|
|
||||||
<audio id="aud"></audio>
|
|
||||||
<% } %>
|
|
||||||
<source src="<%=u%>/latest_version?id=<%=inv_vid.videoId%>&itag=<%=itag%>&local=true" type="video/mp4; codecs="avc1.64001F, mp4a.40.2"" label="hd720" selected="true">
|
<source src="<%=u%>/latest_version?id=<%=inv_vid.videoId%>&itag=<%=itag%>&local=true" type="video/mp4; codecs="avc1.64001F, mp4a.40.2"" label="hd720" selected="true">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<% } %>
|
<% } %>
|
||||||
<% if (qua === "medium") { %>
|
<% if (qua === "medium") { %>
|
||||||
<source src="<%=u%>/latest_version?id=<%=inv_vid.videoId%>&itag=18&local=true" type="video/mp4; codecs="avc1.64001F, mp4a.40.2"" label="sd360" selected="true" onerror="showErrorCard(event)">
|
<source src="<%=u%>/latest_version?id=<%=inv_vid.videoId%>&itag=18&local=true" type="video/mp4; codecs="avc1.64001F, mp4a.40.2"" label="sd360" selected="true" onerror="showErrorCard(event)">
|
||||||
|
@ -1109,6 +1122,7 @@ Offical Discord Server! :3
|
||||||
<% } %>
|
<% } %>
|
||||||
</video>
|
</video>
|
||||||
|
|
||||||
|
|
||||||
<% if (!a) { %>
|
<% if (!a) { %>
|
||||||
<canvas width="12" height="6" class="ambient-canvas" id="ambient-canvas-1"></canvas>
|
<canvas width="12" height="6" class="ambient-canvas" id="ambient-canvas-1"></canvas>
|
||||||
<canvas width="12" height="6" class="ambient-canvas" id="ambient-canvas-2"></canvas>
|
<canvas width="12" height="6" class="ambient-canvas" id="ambient-canvas-2"></canvas>
|
||||||
|
|
Loading…
Reference in a new issue