Fix video player subtitle support
This commit is contained in:
parent
c31e96ee86
commit
5d11d6fdc6
|
@ -13,7 +13,7 @@
|
|||
"@fontsource-variable/murecho": "^5.0.18",
|
||||
"@fontsource-variable/vollkorn": "^5.0.20",
|
||||
"accept-language": "^3.0.18",
|
||||
"astro": "4.5.16",
|
||||
"astro": "4.5.18",
|
||||
"astro-icon": "^1.1.0",
|
||||
"node-cache": "^5.1.2",
|
||||
"tippy.js": "^6.3.7",
|
||||
|
@ -29,7 +29,7 @@
|
|||
"postcss-preset-env": "^9.5.4",
|
||||
"prettier": "^3.2.5",
|
||||
"prettier-plugin-astro": "^0.13.0",
|
||||
"typescript": "^5.4.4"
|
||||
"typescript": "^5.4.5"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=19.7.0",
|
||||
|
@ -3211,9 +3211,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/astro": {
|
||||
"version": "4.5.16",
|
||||
"resolved": "https://registry.npmjs.org/astro/-/astro-4.5.16.tgz",
|
||||
"integrity": "sha512-1nOVsMq2OJiXnG6gO0Y77vTAboGN9nLQSy/8SGazq4h6x+alzbsMbQbArBgvaLzOSUXD0m91XLs3D8bOSuavrQ==",
|
||||
"version": "4.5.18",
|
||||
"resolved": "https://registry.npmjs.org/astro/-/astro-4.5.18.tgz",
|
||||
"integrity": "sha512-iytLnUfyUneKMjIQdj79zzniByXtcmGNDobIV/gjGsatC9vAyPqeCT8TbMqfkRBMeYGs+S/wCzSoPqaaMJiQnw==",
|
||||
"dependencies": {
|
||||
"@astrojs/compiler": "^2.7.1",
|
||||
"@astrojs/internal-helpers": "0.4.0",
|
||||
|
@ -11351,9 +11351,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/tar": {
|
||||
"version": "6.2.0",
|
||||
"resolved": "https://registry.npmjs.org/tar/-/tar-6.2.0.tgz",
|
||||
"integrity": "sha512-/Wo7DcT0u5HUV486xg675HtjNd3BXZ6xDbzsCUZPt5iw8bTQ63bP0Raut3mvro9u+CUyq7YQd8Cx55fsZXxqLQ==",
|
||||
"version": "6.2.1",
|
||||
"resolved": "https://registry.npmjs.org/tar/-/tar-6.2.1.tgz",
|
||||
"integrity": "sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A==",
|
||||
"dependencies": {
|
||||
"chownr": "^2.0.0",
|
||||
"fs-minipass": "^2.0.0",
|
||||
|
@ -11550,9 +11550,9 @@
|
|||
"integrity": "sha512-OJabfkAg1WLZSqJAJ0Z6Sdt3utnbzr/jh+NAHoyWHJe8CMSy79Gm085094M9nvTPy22KzTVn5Zq5mbapCI/hPA=="
|
||||
},
|
||||
"node_modules/typescript": {
|
||||
"version": "5.4.4",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.4.tgz",
|
||||
"integrity": "sha512-dGE2Vv8cpVvw28v8HCPqyb08EzbBURxDpuhJvTrusShUfGnhHBafDsLdS1EhhxyL6BJQE+2cT3dDPAv+MQ6oLw==",
|
||||
"version": "5.4.5",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.5.tgz",
|
||||
"integrity": "sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==",
|
||||
"bin": {
|
||||
"tsc": "bin/tsc",
|
||||
"tsserver": "bin/tsserver"
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
{
|
||||
"name": "v3.accords-library.com",
|
||||
"type": "module",
|
||||
"version": "0.0.1",
|
||||
"scripts": {
|
||||
"dev": "astro dev",
|
||||
|
@ -25,7 +24,7 @@
|
|||
"@fontsource-variable/murecho": "^5.0.18",
|
||||
"@fontsource-variable/vollkorn": "^5.0.20",
|
||||
"accept-language": "^3.0.18",
|
||||
"astro": "4.5.16",
|
||||
"astro": "4.5.18",
|
||||
"astro-icon": "^1.1.0",
|
||||
"node-cache": "^5.1.2",
|
||||
"tippy.js": "^6.3.7",
|
||||
|
@ -41,6 +40,6 @@
|
|||
"postcss-preset-env": "^9.5.4",
|
||||
"prettier": "^3.2.5",
|
||||
"prettier-plugin-astro": "^0.13.0",
|
||||
"typescript": "^5.4.4"
|
||||
"typescript": "^5.4.5"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@ const {
|
|||
|
||||
{/* ------------------------------------------- HTML ------------------------------------------- */}
|
||||
|
||||
<video controls poster={thumbnail?.url}>
|
||||
<video controls poster={thumbnail?.url} crossorigin="anonymous">
|
||||
<source src={url} type={mimeType} />
|
||||
{
|
||||
subtitles.map(({ language, url }) => (
|
||||
|
|
Loading…
Reference in New Issue