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:
parent
c0317225ca
commit
a6b71ea908
@ -239,9 +239,15 @@ export function SourceSelector({ deviceId }: SourceSelectorProps) {
|
||||
{isUploading ? t('common.loading') : t('common.start')}
|
||||
</Button>
|
||||
</div>
|
||||
{isUploading ? (
|
||||
<p className="text-xs text-amber-600 animate-pulse">
|
||||
正在解析影片連結,YouTube 影片可能需要 10-30 秒,請耐心等待...
|
||||
</p>
|
||||
) : (
|
||||
<p className="text-xs text-muted-foreground">
|
||||
{t('camera.urlHelpText')}
|
||||
</p>
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user