diff --git a/.github/workflows/create_heroku_review_app.yaml b/.github/workflows/create_heroku_review_app.yaml index 61605fb65..7e3ade03a 100644 --- a/.github/workflows/create_heroku_review_app.yaml +++ b/.github/workflows/create_heroku_review_app.yaml @@ -7,7 +7,7 @@ jobs: create-review-app: runs-on: ubuntu-latest steps: - - uses: fastruby/manage-heroku-review-app@9fa49f0320460f278c3687bc348dd0cbb18555dc # v1.3 + - uses: kqito/manage-heroku-review-app@55e434ad5ac86f21cf2f7654de1566973fbc7046 with: action: create env: diff --git a/.github/workflows/destroy_heroku_review_app.yaml b/.github/workflows/destroy_heroku_review_app.yaml index b2bf67949..cbcec744a 100644 --- a/.github/workflows/destroy_heroku_review_app.yaml +++ b/.github/workflows/destroy_heroku_review_app.yaml @@ -7,7 +7,7 @@ jobs: destroy-review-app: runs-on: ubuntu-latest steps: - - uses: fastruby/manage-heroku-review-app@9fa49f0320460f278c3687bc348dd0cbb18555dc # v1.3 + - uses: kqito/manage-heroku-review-app@55e434ad5ac86f21cf2f7654de1566973fbc7046 with: action: destroy env: diff --git a/package.json b/package.json index 88d45e67d..cc3400cb3 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "devDependencies": { "@wsh-2025/configs": "workspace:*" }, - "packageManager": "pnpm@9.14.2+sha512.6e2baf77d06b9362294152c851c4f278ede37ab1eba3a55fda317a4a17b209f4dbb973fb250a77abc463a341fcb1f17f17cfa24091c4eb319cda0d9b84278387", + "packageManager": "pnpm@10.6.5+sha512.cdf928fca20832cd59ec53826492b7dc25dc524d4370b6b4adbf65803d32efaa6c1c88147c0ae4e8d579a6c9eec715757b50d4fa35eea179d868eada4ed043af", "engines": { "node": "22.14.0" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 576486ce7..df83d5f8d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -10,7 +10,7 @@ overrides: patchedDependencies: shaka-player: - hash: ztcamgtqc3a62la4l6p3d6w4ae + hash: cf783c59ad29e5efd7af6f6200527ede2fa7d67950876972a6127d280b3dad0c path: patches/shaka-player.patch importers: @@ -39,9 +39,6 @@ importers: '@epic-web/restore-scroll': specifier: 1.1.1 version: 1.1.1(react-router-dom@7.0.2(react-dom@19.0.0(react@19.0.0))(react@19.0.0))(react@19.0.0) - '@ffmpeg/ffmpeg': - specifier: 0.12.15 - version: 0.12.15 '@headlessui/react': specifier: 2.2.0 version: 2.2.0(react-dom@19.0.0(react@19.0.0))(react@19.0.0) @@ -148,12 +145,6 @@ importers: '@babel/preset-typescript': specifier: 7.26.0 version: 7.26.0(@babel/core@7.26.0) - '@ffmpeg/core': - specifier: 0.12.10 - version: 0.12.10 - '@ffmpeg/util': - specifier: 0.12.2 - version: 0.12.2 '@iconify/json': specifier: 2.2.317 version: 2.2.317 @@ -207,7 +198,7 @@ importers: version: 1.5.17 shaka-player: specifier: 4.12.5 - version: 4.12.5(patch_hash=ztcamgtqc3a62la4l6p3d6w4ae) + version: 4.12.5(patch_hash=cf783c59ad29e5efd7af6f6200527ede2fa7d67950876972a6127d280b3dad0c) typescript: specifier: 5.7.2 version: 5.7.2 @@ -1539,22 +1530,6 @@ packages: '@fastify/swagger@9.4.0': resolution: {integrity: sha512-3hF7asqyNfu41aeDA/ATlIG0RY4XizgaDqPR0nc1Unt3EiXWjkVMiELLaH5WZKNvB4BA/5Wovxdin7N4ii7YHw==} - '@ffmpeg/core@0.12.10': - resolution: {integrity: sha512-dzNplnn2Nxle2c2i2rrDhqcB19q9cglCkWnoMTDN9Q9l3PvdjZWd1HfSPjCNWc/p8Q3CT+Es9fWOR0UhAeYQZA==} - engines: {node: '>=16.x'} - - '@ffmpeg/ffmpeg@0.12.15': - resolution: {integrity: sha512-1C8Obr4GsN3xw+/1Ww6PFM84wSQAGsdoTuTWPOj2OizsRDLT4CXTaVjPhkw6ARyDus1B9X/L2LiXHqYYsGnRFw==} - engines: {node: '>=18.x'} - - '@ffmpeg/types@0.12.4': - resolution: {integrity: sha512-k9vJQNBGTxE5AhYDtOYR5rO5fKsspbg51gbcwtbkw2lCdoIILzklulcjJfIDwrtn7XhDeF2M+THwJ2FGrLeV6A==} - engines: {node: '>=16.x'} - - '@ffmpeg/util@0.12.2': - resolution: {integrity: sha512-ouyoW+4JB7WxjeZ2y6KpRvB+dLp7Cp4ro8z0HIVpZVCM7AwFlHa0c4R8Y/a4M3wMqATpYKhC7lSFHQ0T11MEDw==} - engines: {node: '>=18.x'} - '@floating-ui/core@1.6.9': resolution: {integrity: sha512-uMXCuQ3BItDUbAMhIXw7UPXRfAlOAvZzdK9BWpE60MCn+Svt3aLn9jsPTi/WNGlRUu2uI0v5S7JiIUsbsvh3fw==} @@ -6436,16 +6411,6 @@ snapshots: transitivePeerDependencies: - supports-color - '@ffmpeg/core@0.12.10': {} - - '@ffmpeg/ffmpeg@0.12.15': - dependencies: - '@ffmpeg/types': 0.12.4 - - '@ffmpeg/types@0.12.4': {} - - '@ffmpeg/util@0.12.2': {} - '@floating-ui/core@1.6.9': dependencies: '@floating-ui/utils': 0.2.9 @@ -9813,7 +9778,7 @@ snapshots: setprototypeof@1.2.0: {} - shaka-player@4.12.5(patch_hash=ztcamgtqc3a62la4l6p3d6w4ae): + shaka-player@4.12.5(patch_hash=cf783c59ad29e5efd7af6f6200527ede2fa7d67950876972a6127d280b3dad0c): dependencies: eme-encryption-scheme-polyfill: 2.1.6 diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 07b8a536d..817f96aea 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -4,3 +4,7 @@ packages: - ./workspaces/client - ./workspaces/server - ./workspaces/test +onlyBuiltDependencies: + - bcrypt + - core-js + - esbuild diff --git a/public/images/001.jpeg b/public/images/001.jpeg deleted file mode 100644 index dc813003b..000000000 Binary files a/public/images/001.jpeg and /dev/null differ diff --git a/public/images/001.webp b/public/images/001.webp new file mode 100644 index 000000000..fd056e340 Binary files /dev/null and b/public/images/001.webp differ diff --git a/public/images/002.jpeg b/public/images/002.jpeg deleted file mode 100644 index 1ece17f3e..000000000 Binary files a/public/images/002.jpeg and /dev/null differ diff --git a/public/images/002.webp b/public/images/002.webp new file mode 100644 index 000000000..1da3178d1 Binary files /dev/null and b/public/images/002.webp differ diff --git a/public/images/003.jpeg b/public/images/003.jpeg deleted file mode 100644 index ce28dbef0..000000000 Binary files a/public/images/003.jpeg and /dev/null differ diff --git a/public/images/003.webp b/public/images/003.webp new file mode 100644 index 000000000..048fc53c8 Binary files /dev/null and b/public/images/003.webp differ diff --git a/public/images/004.jpeg b/public/images/004.jpeg deleted file mode 100644 index 1ac258743..000000000 Binary files a/public/images/004.jpeg and /dev/null differ diff --git a/public/images/004.webp b/public/images/004.webp new file mode 100644 index 000000000..9cd99c3fe Binary files /dev/null and b/public/images/004.webp differ diff --git a/public/images/005.jpeg b/public/images/005.jpeg deleted file mode 100644 index 033c8cb54..000000000 Binary files a/public/images/005.jpeg and /dev/null differ diff --git a/public/images/005.webp b/public/images/005.webp new file mode 100644 index 000000000..11605d425 Binary files /dev/null and b/public/images/005.webp differ diff --git a/public/images/006.jpeg b/public/images/006.jpeg deleted file mode 100644 index 254f8611b..000000000 Binary files a/public/images/006.jpeg and /dev/null differ diff --git a/public/images/006.webp b/public/images/006.webp new file mode 100644 index 000000000..57ce717aa Binary files /dev/null and b/public/images/006.webp differ diff --git a/public/images/007.jpeg b/public/images/007.jpeg deleted file mode 100644 index f47135155..000000000 Binary files a/public/images/007.jpeg and /dev/null differ diff --git a/public/images/007.webp b/public/images/007.webp new file mode 100644 index 000000000..fe2c35b67 Binary files /dev/null and b/public/images/007.webp differ diff --git a/public/images/008.jpeg b/public/images/008.jpeg deleted file mode 100644 index 1b09e2d4e..000000000 Binary files a/public/images/008.jpeg and /dev/null differ diff --git a/public/images/008.webp b/public/images/008.webp new file mode 100644 index 000000000..7d2e0edb8 Binary files /dev/null and b/public/images/008.webp differ diff --git a/public/images/009.jpeg b/public/images/009.jpeg deleted file mode 100644 index dddf48709..000000000 Binary files a/public/images/009.jpeg and /dev/null differ diff --git a/public/images/009.webp b/public/images/009.webp new file mode 100644 index 000000000..f3a26860b Binary files /dev/null and b/public/images/009.webp differ diff --git a/public/images/010.jpeg b/public/images/010.jpeg deleted file mode 100644 index cbb93cccd..000000000 Binary files a/public/images/010.jpeg and /dev/null differ diff --git a/public/images/010.webp b/public/images/010.webp new file mode 100644 index 000000000..4733ca1ef Binary files /dev/null and b/public/images/010.webp differ diff --git a/public/images/011.jpeg b/public/images/011.jpeg deleted file mode 100644 index a1daeebba..000000000 Binary files a/public/images/011.jpeg and /dev/null differ diff --git a/public/images/011.webp b/public/images/011.webp new file mode 100644 index 000000000..5cd68f483 Binary files /dev/null and b/public/images/011.webp differ diff --git a/public/images/012.jpeg b/public/images/012.jpeg deleted file mode 100644 index c5426d6f9..000000000 Binary files a/public/images/012.jpeg and /dev/null differ diff --git a/public/images/012.webp b/public/images/012.webp new file mode 100644 index 000000000..311496dc4 Binary files /dev/null and b/public/images/012.webp differ diff --git a/public/images/013.jpeg b/public/images/013.jpeg deleted file mode 100644 index 8ad516a13..000000000 Binary files a/public/images/013.jpeg and /dev/null differ diff --git a/public/images/013.webp b/public/images/013.webp new file mode 100644 index 000000000..5279f0b02 Binary files /dev/null and b/public/images/013.webp differ diff --git a/public/images/014.jpeg b/public/images/014.jpeg deleted file mode 100644 index be184c423..000000000 Binary files a/public/images/014.jpeg and /dev/null differ diff --git a/public/images/014.webp b/public/images/014.webp new file mode 100644 index 000000000..b57edb6f7 Binary files /dev/null and b/public/images/014.webp differ diff --git a/public/images/015.jpeg b/public/images/015.jpeg deleted file mode 100644 index 7485bee90..000000000 Binary files a/public/images/015.jpeg and /dev/null differ diff --git a/public/images/015.webp b/public/images/015.webp new file mode 100644 index 000000000..bfcfc1902 Binary files /dev/null and b/public/images/015.webp differ diff --git a/public/images/016.jpeg b/public/images/016.jpeg deleted file mode 100644 index 4cfbb87bd..000000000 Binary files a/public/images/016.jpeg and /dev/null differ diff --git a/public/images/016.webp b/public/images/016.webp new file mode 100644 index 000000000..e58f9a854 Binary files /dev/null and b/public/images/016.webp differ diff --git a/public/images/017.jpeg b/public/images/017.jpeg deleted file mode 100644 index 39a2f2408..000000000 Binary files a/public/images/017.jpeg and /dev/null differ diff --git a/public/images/017.webp b/public/images/017.webp new file mode 100644 index 000000000..a927ae430 Binary files /dev/null and b/public/images/017.webp differ diff --git a/public/images/018.jpeg b/public/images/018.jpeg deleted file mode 100644 index f6ae9d20f..000000000 Binary files a/public/images/018.jpeg and /dev/null differ diff --git a/public/images/018.webp b/public/images/018.webp new file mode 100644 index 000000000..1939e67ed Binary files /dev/null and b/public/images/018.webp differ diff --git a/public/images/019.jpeg b/public/images/019.jpeg deleted file mode 100644 index 2f36db641..000000000 Binary files a/public/images/019.jpeg and /dev/null differ diff --git a/public/images/019.webp b/public/images/019.webp new file mode 100644 index 000000000..74d621194 Binary files /dev/null and b/public/images/019.webp differ diff --git a/public/images/020.jpeg b/public/images/020.jpeg deleted file mode 100644 index b4a566b73..000000000 Binary files a/public/images/020.jpeg and /dev/null differ diff --git a/public/images/020.webp b/public/images/020.webp new file mode 100644 index 000000000..fe98ad10a Binary files /dev/null and b/public/images/020.webp differ diff --git a/public/images/021.jpeg b/public/images/021.jpeg deleted file mode 100644 index 6d663e7f9..000000000 Binary files a/public/images/021.jpeg and /dev/null differ diff --git a/public/images/021.webp b/public/images/021.webp new file mode 100644 index 000000000..efe1a0906 Binary files /dev/null and b/public/images/021.webp differ diff --git a/public/images/022.jpeg b/public/images/022.jpeg deleted file mode 100644 index aa5cccf8c..000000000 Binary files a/public/images/022.jpeg and /dev/null differ diff --git a/public/images/022.webp b/public/images/022.webp new file mode 100644 index 000000000..ca784fd54 Binary files /dev/null and b/public/images/022.webp differ diff --git a/public/images/023.jpeg b/public/images/023.jpeg deleted file mode 100644 index 1e1e4e7d3..000000000 Binary files a/public/images/023.jpeg and /dev/null differ diff --git a/public/images/023.webp b/public/images/023.webp new file mode 100644 index 000000000..18b72f9f1 Binary files /dev/null and b/public/images/023.webp differ diff --git a/public/images/024.jpeg b/public/images/024.jpeg deleted file mode 100644 index c5e5f86c8..000000000 Binary files a/public/images/024.jpeg and /dev/null differ diff --git a/public/images/024.webp b/public/images/024.webp new file mode 100644 index 000000000..494e9cc76 Binary files /dev/null and b/public/images/024.webp differ diff --git a/public/images/025.jpeg b/public/images/025.jpeg deleted file mode 100644 index e1c9bc113..000000000 Binary files a/public/images/025.jpeg and /dev/null differ diff --git a/public/images/025.webp b/public/images/025.webp new file mode 100644 index 000000000..34d7acd1f Binary files /dev/null and b/public/images/025.webp differ diff --git a/public/images/026.jpeg b/public/images/026.jpeg deleted file mode 100644 index 9169af8dd..000000000 Binary files a/public/images/026.jpeg and /dev/null differ diff --git a/public/images/026.webp b/public/images/026.webp new file mode 100644 index 000000000..28e6303b9 Binary files /dev/null and b/public/images/026.webp differ diff --git a/public/images/027.jpeg b/public/images/027.jpeg deleted file mode 100644 index 754c29f51..000000000 Binary files a/public/images/027.jpeg and /dev/null differ diff --git a/public/images/027.webp b/public/images/027.webp new file mode 100644 index 000000000..e57b2257b Binary files /dev/null and b/public/images/027.webp differ diff --git a/public/images/028.jpeg b/public/images/028.jpeg deleted file mode 100644 index d27b403be..000000000 Binary files a/public/images/028.jpeg and /dev/null differ diff --git a/public/images/028.webp b/public/images/028.webp new file mode 100644 index 000000000..6601d785e Binary files /dev/null and b/public/images/028.webp differ diff --git a/public/images/029.jpeg b/public/images/029.jpeg deleted file mode 100644 index e74fa0ed4..000000000 Binary files a/public/images/029.jpeg and /dev/null differ diff --git a/public/images/029.webp b/public/images/029.webp new file mode 100644 index 000000000..3ab9ac8f6 Binary files /dev/null and b/public/images/029.webp differ diff --git a/public/images/030.jpeg b/public/images/030.jpeg deleted file mode 100644 index 9d7fe74ff..000000000 Binary files a/public/images/030.jpeg and /dev/null differ diff --git a/public/images/030.webp b/public/images/030.webp new file mode 100644 index 000000000..9382d4e8a Binary files /dev/null and b/public/images/030.webp differ diff --git a/public/images/031.jpeg b/public/images/031.jpeg deleted file mode 100644 index 926a3ee74..000000000 Binary files a/public/images/031.jpeg and /dev/null differ diff --git a/public/images/031.webp b/public/images/031.webp new file mode 100644 index 000000000..bf607f8e3 Binary files /dev/null and b/public/images/031.webp differ diff --git a/public/images/032.jpeg b/public/images/032.jpeg deleted file mode 100644 index 57d8a4424..000000000 Binary files a/public/images/032.jpeg and /dev/null differ diff --git a/public/images/032.webp b/public/images/032.webp new file mode 100644 index 000000000..fd4bb5213 Binary files /dev/null and b/public/images/032.webp differ diff --git a/public/images/033.jpeg b/public/images/033.jpeg deleted file mode 100644 index cb8d05eb9..000000000 Binary files a/public/images/033.jpeg and /dev/null differ diff --git a/public/images/033.webp b/public/images/033.webp new file mode 100644 index 000000000..944d8b247 Binary files /dev/null and b/public/images/033.webp differ diff --git a/public/images/034.jpeg b/public/images/034.jpeg deleted file mode 100644 index d96e76079..000000000 Binary files a/public/images/034.jpeg and /dev/null differ diff --git a/public/images/034.webp b/public/images/034.webp new file mode 100644 index 000000000..69b5f4926 Binary files /dev/null and b/public/images/034.webp differ diff --git a/public/images/035.jpeg b/public/images/035.jpeg deleted file mode 100644 index 0d3a506f3..000000000 Binary files a/public/images/035.jpeg and /dev/null differ diff --git a/public/images/035.webp b/public/images/035.webp new file mode 100644 index 000000000..7c9107cf5 Binary files /dev/null and b/public/images/035.webp differ diff --git a/public/images/036.jpeg b/public/images/036.jpeg deleted file mode 100644 index 1f349e9ab..000000000 Binary files a/public/images/036.jpeg and /dev/null differ diff --git a/public/images/036.webp b/public/images/036.webp new file mode 100644 index 000000000..e143b0486 Binary files /dev/null and b/public/images/036.webp differ diff --git a/public/images/037.jpeg b/public/images/037.jpeg deleted file mode 100644 index b18bed87b..000000000 Binary files a/public/images/037.jpeg and /dev/null differ diff --git a/public/images/037.webp b/public/images/037.webp new file mode 100644 index 000000000..049ddad09 Binary files /dev/null and b/public/images/037.webp differ diff --git a/workspaces/client/package.json b/workspaces/client/package.json index f6c261693..8de039d5e 100644 --- a/workspaces/client/package.json +++ b/workspaces/client/package.json @@ -12,7 +12,6 @@ "@better-fetch/fetch": "1.1.15", "@dhmk/zustand-lens": "5.0.0", "@epic-web/restore-scroll": "1.1.1", - "@ffmpeg/ffmpeg": "0.12.15", "@headlessui/react": "2.2.0", "@radix-ui/react-slider": "1.2.3", "@standard-schema/spec": "1.0.0", @@ -50,8 +49,6 @@ "@babel/preset-env": "7.26.0", "@babel/preset-react": "7.25.9", "@babel/preset-typescript": "7.26.0", - "@ffmpeg/core": "0.12.10", - "@ffmpeg/util": "0.12.2", "@iconify/json": "2.2.317", "@iconify/types": "2.0.0", "@types/lodash": "4.17.16", diff --git a/workspaces/client/src/features/player/logics/create_player.ts b/workspaces/client/src/features/player/logics/create_player.ts index 823364d27..933e529a8 100644 --- a/workspaces/client/src/features/player/logics/create_player.ts +++ b/workspaces/client/src/features/player/logics/create_player.ts @@ -20,7 +20,7 @@ class ShakaPlayerWrapper implements PlayerWrapper { this.playerType = playerType; this._player.configure({ streaming: { - bufferingGoal: 50, + bufferingGoal: 6, }, }); } @@ -72,8 +72,8 @@ class HlsJSPlayerWrapper implements PlayerWrapper { volume: 0.25, }); private _player = new HlsJs({ - enableWorker: false, - maxBufferLength: 50, + enableWorker: true, + maxBufferLength: 3, }); readonly playerType: PlayerType.HlsJS; @@ -135,8 +135,8 @@ class VideoJSPlayerWrapper implements PlayerWrapper { constructor(playerType: PlayerType.VideoJS) { const vhsConfig = (videojs as unknown as { Vhs: VhsConfig }).Vhs; - vhsConfig.GOAL_BUFFER_LENGTH = 50; - vhsConfig.MAX_GOAL_BUFFER_LENGTH = 50; + vhsConfig.GOAL_BUFFER_LENGTH = 3; + vhsConfig.MAX_GOAL_BUFFER_LENGTH = 6; this.playerType = playerType; } diff --git a/workspaces/client/src/pages/episode/hooks/useSeekThumbnail.ts b/workspaces/client/src/pages/episode/hooks/useSeekThumbnail.ts index 8d0015d89..ad37a4f44 100644 --- a/workspaces/client/src/pages/episode/hooks/useSeekThumbnail.ts +++ b/workspaces/client/src/pages/episode/hooks/useSeekThumbnail.ts @@ -1,7 +1,5 @@ -import { FFmpeg } from '@ffmpeg/ffmpeg'; import { StandardSchemaV1 } from '@standard-schema/spec'; import * as schema from '@wsh-2025/schema/src/api/schema'; -import { Parser } from 'm3u8-parser'; import { use } from 'react'; interface Params { @@ -9,62 +7,8 @@ interface Params { } async function getSeekThumbnail({ episode }: Params) { - // HLS のプレイリストを取得 - const playlistUrl = `/streams/episode/${episode.id}/playlist.m3u8`; - const parser = new Parser(); - parser.push(await fetch(playlistUrl).then((res) => res.text())); - parser.end(); - - // FFmpeg の初期化 - const ffmpeg = new FFmpeg(); - await ffmpeg.load({ - coreURL: await import('@ffmpeg/core?arraybuffer').then(({ default: b }) => { - return URL.createObjectURL(new Blob([b], { type: 'text/javascript' })); - }), - wasmURL: await import('@ffmpeg/core/wasm?arraybuffer').then(({ default: b }) => { - return URL.createObjectURL(new Blob([b], { type: 'application/wasm' })); - }), - }); - - // 動画のセグメントファイルを取得 - const segmentFiles = await Promise.all( - parser.manifest.segments.map((s) => { - return fetch(s.uri).then(async (res) => { - const binary = await res.arrayBuffer(); - return { binary, id: Math.random().toString(36).slice(2) }; - }); - }), - ); - // FFmpeg にセグメントファイルを追加 - for (const file of segmentFiles) { - await ffmpeg.writeFile(file.id, new Uint8Array(file.binary)); - } - - // セグメントファイルをひとつの mp4 動画に結合 - await ffmpeg.exec( - [ - ['-i', `concat:${segmentFiles.map((f) => f.id).join('|')}`], - ['-c:v', 'copy'], - ['-map', '0:v:0'], - ['-f', 'mp4'], - 'concat.mp4', - ].flat(), - ); - - // fps=30 とみなして、30 フレームごと(1 秒ごと)にサムネイルを生成 - await ffmpeg.exec( - [ - ['-i', 'concat.mp4'], - ['-vf', "fps=30,select='not(mod(n\\,30))',scale=160:90,tile=250x1"], - ['-frames:v', '1'], - 'preview.jpg', - ].flat(), - ); - - const output = await ffmpeg.readFile('preview.jpg'); - ffmpeg.terminate(); - - return URL.createObjectURL(new Blob([output], { type: 'image/jpeg' })); + const playlistUrl = `/streams/episode/${episode.id}/preview.jpg`; + return playlistUrl; } const weakMap = new WeakMap>(); diff --git a/workspaces/client/webpack.config.mjs b/workspaces/client/webpack.config.mjs index 9164a996e..91bed05e4 100644 --- a/workspaces/client/webpack.config.mjs +++ b/workspaces/client/webpack.config.mjs @@ -64,8 +64,6 @@ const config = { ], resolve: { alias: { - '@ffmpeg/core$': path.resolve(import.meta.dirname, 'node_modules', '@ffmpeg/core/dist/umd/ffmpeg-core.js'), - '@ffmpeg/core/wasm$': path.resolve(import.meta.dirname, 'node_modules', '@ffmpeg/core/dist/umd/ffmpeg-core.wasm'), }, extensions: ['.js', '.cjs', '.mjs', '.ts', '.cts', '.mts', '.tsx', '.jsx'], }, diff --git a/workspaces/server/database.sqlite b/workspaces/server/database.sqlite index 5afaf4e28..f38e4f743 100644 Binary files a/workspaces/server/database.sqlite and b/workspaces/server/database.sqlite differ diff --git a/workspaces/server/streams/caminandes2/preview.jpg b/workspaces/server/streams/caminandes2/preview.jpg new file mode 100644 index 000000000..ba1ecaa61 Binary files /dev/null and b/workspaces/server/streams/caminandes2/preview.jpg differ diff --git a/workspaces/server/streams/dailydweebs/preview.jpg b/workspaces/server/streams/dailydweebs/preview.jpg new file mode 100644 index 000000000..b417f25a8 Binary files /dev/null and b/workspaces/server/streams/dailydweebs/preview.jpg differ diff --git a/workspaces/server/streams/glasshalf/preview.jpg b/workspaces/server/streams/glasshalf/preview.jpg new file mode 100644 index 000000000..a1d59961f Binary files /dev/null and b/workspaces/server/streams/glasshalf/preview.jpg differ diff --git a/workspaces/server/streams/wing-it/preview.jpg b/workspaces/server/streams/wing-it/preview.jpg new file mode 100644 index 000000000..ffda7512b Binary files /dev/null and b/workspaces/server/streams/wing-it/preview.jpg differ