fix(local-tool): URL 影片載入提示「正在解析,請耐心等待」

URL 送出後 yt-dlp 解析 + ffmpeg probe 可能花 10-30 秒,
使用者只看到按鈕 loading 會以為卡住。

加一行黃色 animate-pulse 提示:
「正在解析影片連結,YouTube 影片可能需要 10-30 秒,請耐心等待...」

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
jim800121chen 2026-04-13 00:57:03 +08:00
parent c0317225ca
commit a6b71ea908

View File

@ -239,9 +239,15 @@ export function SourceSelector({ deviceId }: SourceSelectorProps) {
{isUploading ? t('common.loading') : t('common.start')} {isUploading ? t('common.loading') : t('common.start')}
</Button> </Button>
</div> </div>
<p className="text-xs text-muted-foreground"> {isUploading ? (
{t('camera.urlHelpText')} <p className="text-xs text-amber-600 animate-pulse">
</p> YouTube 10-30 ...
</p>
) : (
<p className="text-xs text-muted-foreground">
{t('camera.urlHelpText')}
</p>
)}
</div> </div>
)} )}
</div> </div>