feat/api-prox: use custom player instead of iframe

This commit is contained in:
Kentai Radiquum 2025-07-07 17:30:23 +05:00
parent 6eb5288f5c
commit d4f297e3fb
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
5 changed files with 948 additions and 11 deletions

14
api-prox/iframe.ts Normal file
View file

@ -0,0 +1,14 @@
export const Iframe = (url: string) => {
return `
<!DOCTYPE html>
<html>
<head>
<title>Веб-плеер</title>
<meta name='viewport' content='width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=yes' />
<style>body, html {height: 100%; width: 100%; margin: 0px;padding: 0px;border: 0px;}</style>
</head>
<body>
<iframe src="${url}" width='100%' height='100%' frameborder='0' AllowFullScreen allow="autoplay"></iframe>
</body>
</html>`
}