Skip to content

Commit 4b6446b

Browse files
frontend: components: VideoStreamCreationDialog: Add udp265 validation
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
1 parent bc9db3f commit 4b6446b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

core/frontend/src/components/video-manager/VideoStreamCreationDialog.vue

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,7 @@ export default Vue.extend({
390390
if (endpoint.startsWith('rtsp://')) return StreamType.RTSP
391391
if (endpoint.startsWith('rtspt://')) return StreamType.RTSPT
392392
if (endpoint.startsWith('rtsph://')) return StreamType.RTSPH
393+
if (endpoint.startsWith('udp265://')) return StreamType.UDP265
393394
return StreamType.UDP
394395
},
395396
availableStreamTypes(endpoint: string): {text: StreamType, pirate: boolean, desc?: string}[] {
@@ -398,6 +399,7 @@ export default Vue.extend({
398399
const protocols = [
399400
{ text: StreamType.RTSP, pirate: false },
400401
{ text: StreamType.UDP, pirate: false },
402+
{ text: StreamType.UDP265, pirate: false },
401403
]
402404
403405
const pirateModeProtocols = [
@@ -443,6 +445,12 @@ export default Vue.extend({
443445
Vue.set(this.stream_endpoints, index, `udp://${this.user_ip_address}:${5600 + index}`)
444446
}
445447
break
448+
case StreamType.UDP265:
449+
if (!this.stream_endpoints[index].includes('udp265://')) {
450+
// Vue.set() forces the update of a nested property
451+
Vue.set(this.stream_endpoints, index, `udp265://${this.user_ip_address}:${5600 + index}`)
452+
}
453+
break
446454
case StreamType.RTSP:
447455
case StreamType.RTSPU:
448456
case StreamType.RTSPT:

0 commit comments

Comments
 (0)