Show playing video file name
This commit is contained in:
@ -1,6 +1,10 @@
|
|||||||
$(async function()
|
$(async function()
|
||||||
{
|
{
|
||||||
const hash = location.hash.slice(1);
|
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...");
|
$("#status").text("Fetching media info...");
|
||||||
let res = await fetch(`api/info.php?file=${hash}`);
|
let res = await fetch(`api/info.php?file=${hash}`);
|
||||||
|
|||||||
@ -8,6 +8,7 @@
|
|||||||
<title>Anime - Player</title>
|
<title>Anime - Player</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<p id="title"></p>
|
||||||
<h2 id="status">"Video Player"</h2>
|
<h2 id="status">"Video Player"</h2>
|
||||||
<video id="vid" class="video-js" controls width="480" height="360"/>
|
<video id="vid" class="video-js" controls width="480" height="360"/>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
Reference in New Issue
Block a user