Skip to content

Commit

Permalink
frontend: components: VideoStreamCreationDialog: Add udp265 validation
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick José Pereira <[email protected]>
  • Loading branch information
patrickelectric committed Nov 12, 2024
1 parent 08d49fd commit aa6c7dd
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,7 @@ export default Vue.extend({
if (endpoint.startsWith('rtsp://')) return StreamType.RTSP
if (endpoint.startsWith('rtspt://')) return StreamType.RTSPT
if (endpoint.startsWith('rtsph://')) return StreamType.RTSPH
if (endpoint.startsWith('udp265://')) return StreamType.UDP265
return StreamType.UDP
},
availableStreamTypes(endpoint: string): {text: StreamType, pirate: boolean, desc?: string}[] {
Expand All @@ -398,6 +399,7 @@ export default Vue.extend({
const protocols = [
{ text: StreamType.RTSP, pirate: false },
{ text: StreamType.UDP, pirate: false },
{ text: StreamType.UDP265, pirate: false },
]
const pirateModeProtocols = [
Expand Down Expand Up @@ -443,6 +445,12 @@ export default Vue.extend({
Vue.set(this.stream_endpoints, index, `udp://${this.user_ip_address}:${5600 + index}`)
}
break
case StreamType.UDP265:
if (!this.stream_endpoints[index].includes('udp265://')) {
// Vue.set() forces the update of a nested property
Vue.set(this.stream_endpoints, index, `udp265://${this.user_ip_address}:${5600 + index}`)
}
break
case StreamType.RTSP:
case StreamType.RTSPU:
case StreamType.RTSPT:
Expand Down

0 comments on commit aa6c7dd

Please sign in to comment.