mirror of
https://github.com/Radiquum/AniX.git
synced 2025-09-05 22:15:36 +05:00
feat/api-prox: use custom player instead of iframe
This commit is contained in:
parent
6eb5288f5c
commit
d4f297e3fb
5 changed files with 948 additions and 11 deletions
14
api-prox/iframe.ts
Normal file
14
api-prox/iframe.ts
Normal 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>`
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue