2
This commit is contained in:
parent
17964ec59a
commit
19ac3babad
@ -95,7 +95,7 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var iChannelID = parseInt(data.channel, 10) || 1;
|
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, {
|
WebVideoCtrl.I_StartRealPlay(g_szDeviceIdentify, {
|
||||||
iStreamType: iStreamType,
|
iStreamType: iStreamType,
|
||||||
|
|||||||
@ -111,7 +111,7 @@ export function getLiveStreamUrl(params: {
|
|||||||
streamType?: number
|
streamType?: number
|
||||||
port?: number
|
port?: number
|
||||||
}): string {
|
}): string {
|
||||||
const { ip, user, pass, channel, streamType = 1, port } = params
|
const { ip, user, pass, channel, streamType = 0, port } = params
|
||||||
const portParam = port ? `&port=${port}` : ''
|
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}`
|
return `${DEFAULT_PROXY_BASE}/api/hikvision/live-stream?ip=${encodeURIComponent(ip)}&user=${encodeURIComponent(user)}&pass=${encodeURIComponent(pass)}&channel=${channel}&streamType=${streamType}${portParam}`
|
||||||
}
|
}
|
||||||
|
|||||||
@ -87,7 +87,7 @@ const streamSrc = computed(() => {
|
|||||||
user: nvrUser.value,
|
user: nvrUser.value,
|
||||||
pass: nvrPass.value,
|
pass: nvrPass.value,
|
||||||
channel: row.channel_id,
|
channel: row.channel_id,
|
||||||
streamType: 1,
|
streamType: 0,
|
||||||
port: nvrPort.value
|
port: nvrPort.value
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
@ -89,7 +89,7 @@ const streamSrc = computed(() => {
|
|||||||
user: nvrUser.value,
|
user: nvrUser.value,
|
||||||
pass: nvrPass.value,
|
pass: nvrPass.value,
|
||||||
channel: row.channel_id,
|
channel: row.channel_id,
|
||||||
streamType: 1,
|
streamType: 0,
|
||||||
port: nvrPort.value
|
port: nvrPort.value
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user