mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-27 19:03:46 +02:00
68 lines
2.4 KiB
HTML
68 lines
2.4 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en" translate="no">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Metadata extraction example | Mediabunny</title>
|
|
<script type="module" src="../base.ts"></script>
|
|
<script type="module" src="./metadata-extraction.ts"></script>
|
|
<link rel="stylesheet" href="../base.css">
|
|
<link rel="icon" href="../../docs/public/mediabunny-logo.svg">
|
|
</head>
|
|
|
|
<body class="flex flex-col items-center py-10 bg-zinc-50 text-zinc-800 dark:bg-zinc-900 dark:text-zinc-200 px-2">
|
|
<h1 class="text-3xl font-bold text-blue-500 text-center">Metadata extraction example</h1>
|
|
<p class="max-w-lg text-center">Select or drop a media file, and Mediabunny will start extracting various metadata about that file.</p>
|
|
|
|
<div class="flex flex-col items-center gap-1">
|
|
<div class="flex gap-2 mt-4">
|
|
<button id="select-file" class="rounded-lg bg-zinc-200 dark:bg-zinc-750 hover:bg-zinc-300 dark:hover:bg-zinc-700 px-5 py-2">
|
|
Select local file
|
|
</button>
|
|
|
|
<button id="load-url" class="rounded-lg bg-zinc-200 dark:bg-zinc-750 hover:bg-zinc-300 dark:hover:bg-zinc-700 px-5 py-2">
|
|
Load remote URL
|
|
</button>
|
|
</div>
|
|
|
|
<a id="sample-file-download" download="big-buck-bunny-trimmed.mp4" class="hover:underline text-xs opacity-50 hover:opacity-70">
|
|
Download sample file
|
|
</a>
|
|
</div>
|
|
|
|
<p class="text-xs opacity-60 mt-2" id="file-name"></p>
|
|
|
|
<hr class="w-full max-w-96 my-4 border-zinc-300 dark:border-zinc-700" style="display: none;">
|
|
|
|
<p id="bytes-read" class="text-center text-xs font-medium mb-4"></p>
|
|
<div id="metadata-container" class="text-sm"></div>
|
|
|
|
<a href="/" class="fixed top-0 left-0 flex gap-2 py-2 px-5 items-center">
|
|
<img src="../../docs/public/mediabunny-logo.svg" class="size-6">
|
|
<p class="text-sm font-medium">Mediabunny</p>
|
|
</a>
|
|
|
|
<a
|
|
href="https://github.com/Vanilagy/mediabunny/tree/main/examples/metadata-extraction"
|
|
target="_blank"
|
|
class="flex items-center gap-2 fixed top-0 right-0 py-2 px-5 bg-zinc-200 dark:bg-zinc-750 hover:bg-zinc-300 dark:hover:bg-zinc-700 rounded-bl-xl"
|
|
>
|
|
<img src="../../docs/assets/github-mark.svg" class="size-6 dark:invert">
|
|
<p>View source code</p>
|
|
</a>
|
|
</body>
|
|
|
|
<style>
|
|
@reference "../base.css";
|
|
|
|
ul {
|
|
@apply py-1 px-4 bg-gray-500/10 rounded-lg;
|
|
}
|
|
|
|
b {
|
|
@apply font-semibold;
|
|
}
|
|
</style>
|
|
</html>
|