This commit is contained in:
yin 2026-07-18 18:23:45 +08:00
parent 17964ec59a
commit 19ac3babad
4 changed files with 4 additions and 4 deletions

View File

@ -95,7 +95,7 @@
return;
}
var iChannelID = parseInt(data.channel, 10) || 1;
var iStreamType = parseInt(data.streamType, 10) || 1;
var iStreamType = parseInt(data.streamType, 10) || 0;
WebVideoCtrl.I_StartRealPlay(g_szDeviceIdentify, {
iStreamType: iStreamType,

View File

@ -111,7 +111,7 @@ export function getLiveStreamUrl(params: {
streamType?: number
port?: number
}): string {
const { ip, user, pass, channel, streamType = 1, port } = params
const { ip, user, pass, channel, streamType = 0, port } = params
const portParam = port ? `&port=${port}` : ''
return `${DEFAULT_PROXY_BASE}/api/hikvision/live-stream?ip=${encodeURIComponent(ip)}&user=${encodeURIComponent(user)}&pass=${encodeURIComponent(pass)}&channel=${channel}&streamType=${streamType}${portParam}`
}

View File

@ -87,7 +87,7 @@ const streamSrc = computed(() => {
user: nvrUser.value,
pass: nvrPass.value,
channel: row.channel_id,
streamType: 1,
streamType: 0,
port: nvrPort.value
})
})

View File

@ -89,7 +89,7 @@ const streamSrc = computed(() => {
user: nvrUser.value,
pass: nvrPass.value,
channel: row.channel_id,
streamType: 1,
streamType: 0,
port: nvrPort.value
})
})