Show playing video file name

This commit is contained in:
2025-10-02 13:36:03 +02:00
parent b11218dcec
commit 732791e4f4
2 changed files with 5 additions and 0 deletions

View File

@ -1,6 +1,10 @@
$(async function()
{
const hash = location.hash.slice(1);
const file = atob(hash.replace(/-/g, '+').replace(/_/g, '/'));
$("title").text("Anime - "+file);
$("#title").text(file);
$("#status").text("Fetching media info...");
let res = await fetch(`api/info.php?file=${hash}`);

View File

@ -8,6 +8,7 @@
<title>Anime - Player</title>
</head>
<body>
<p id="title"></p>
<h2 id="status">"Video Player"</h2>
<video id="vid" class="video-js" controls width="480" height="360"/>
</body>