修改下载目录

This commit is contained in:
CN-JS-HuiBai
2026-04-03 00:49:04 +08:00
parent b6dc21c265
commit 7581d33112
3 changed files with 16 additions and 10 deletions

View File

@@ -67,7 +67,7 @@
<option value="neon">NEON</option>
<option value="nvidia">NVIDIA</option>
<option value="intel">Intel</option>
<option value="vaapi">VAAPI</option>
<option value="vaapi" selected>VAAPI</option>
</select>
</div>
<div id="loading-spinner" class="spinner-container">

View File

@@ -116,7 +116,7 @@ document.addEventListener('DOMContentLoaded', () => {
const buildStreamUrl = (targetSeconds = null) => {
const codec = codecSelect?.value || 'h264';
const encoder = encoderSelect?.value || 'software';
const encoder = encoderSelect?.value || 'vaapi';
const streamSessionId = createStreamSessionId();
let streamUrl = `/api/stream?bucket=${encodeURIComponent(selectedBucket)}&key=${encodeURIComponent(selectedKey)}&codec=${encodeURIComponent(codec)}&encoder=${encodeURIComponent(encoder)}&streamSessionId=${encodeURIComponent(streamSessionId)}`;
if (typeof targetSeconds === 'number' && Number.isFinite(targetSeconds) && targetSeconds > 0) {
@@ -909,7 +909,7 @@ document.addEventListener('DOMContentLoaded', () => {
try {
const codec = codecSelect?.value || 'h264';
const encoder = encoderSelect?.value || 'software';
const encoder = encoderSelect?.value || 'vaapi';
if (!selectedBucket) throw new Error('No bucket selected');
const streamUrl = buildStreamUrl();
videoPlayer.src = streamUrl;