fix: serval bugs
This commit is contained in:
@@ -183,8 +183,8 @@ const exportVideo = () => {
|
|||||||
textShadow: subtitleStyleState.effect === 'shadow' ? {
|
textShadow: subtitleStyleState.effect === 'shadow' ? {
|
||||||
offsetX: 2,
|
offsetX: 2,
|
||||||
offsetY: 2,
|
offsetY: 2,
|
||||||
blur: 4,
|
blur: 6,
|
||||||
color: "rgba(0, 0, 0, 0.25)",
|
color: "rgba(0, 0, 0, 0.35)",
|
||||||
} : {
|
} : {
|
||||||
offsetX: 0,
|
offsetX: 0,
|
||||||
offsetY: 0,
|
offsetY: 0,
|
||||||
|
|||||||
@@ -45,21 +45,21 @@ export const useVideoSubtitleEmbedding = async (
|
|||||||
await videoSprite.ready;
|
await videoSprite.ready;
|
||||||
|
|
||||||
const srtSprite = new OffscreenSprite(
|
const srtSprite = new OffscreenSprite(
|
||||||
new EmbedSubtitlesClip(await (await fetch(srtUrl)).text(), {
|
new EmbedSubtitlesClip(await(await fetch(srtUrl)).text(), {
|
||||||
videoWidth: 1920,
|
videoWidth: 1920,
|
||||||
videoHeight: 1080,
|
videoHeight: 1080,
|
||||||
fontSize: 36,
|
fontSize: 36,
|
||||||
fontFamily: "Noto Sans SC",
|
fontFamily: 'Noto Sans SC',
|
||||||
strokeStyle: "none",
|
strokeStyle: 'none',
|
||||||
textShadow: {
|
textShadow: {
|
||||||
offsetX: 2,
|
offsetX: 2,
|
||||||
offsetY: 2,
|
offsetY: 2,
|
||||||
blur: 4,
|
blur: 6,
|
||||||
color: "rgba(0, 0, 0, 0.25)",
|
color: 'rgba(0, 0, 0, 0.35)',
|
||||||
},
|
},
|
||||||
...options,
|
...options,
|
||||||
})
|
})
|
||||||
);
|
)
|
||||||
await srtSprite.ready;
|
await srtSprite.ready;
|
||||||
srtSprite.time = { duration: videoClip.meta.duration, offset: 0 }
|
srtSprite.time = { duration: videoClip.meta.duration, offset: 0 }
|
||||||
|
|
||||||
|
|||||||
@@ -201,7 +201,7 @@ const open = (url?: string | URL, target?: string, features?: string) => {
|
|||||||
class="pattern w-full p-10 flex flex-col justify-center gap-3 items-center rounded-lg shadow-sm border border-gray-200 dark:border-neutral-700"
|
class="pattern w-full p-10 flex flex-col justify-center gap-3 items-center rounded-lg shadow-sm border border-gray-200 dark:border-neutral-700"
|
||||||
>
|
>
|
||||||
<h1 class="text-4xl font-bold text-center text-primary">AI 工具导航</h1>
|
<h1 class="text-4xl font-bold text-center text-primary">AI 工具导航</h1>
|
||||||
<p>常用 AI 工具,一网打尽</p>
|
<p>常用 AI 工具,一网打尽,常用常新</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="w-full">
|
<div class="w-full">
|
||||||
<div class="space-y-10">
|
<div class="space-y-10">
|
||||||
|
|||||||
Reference in New Issue
Block a user