Skip to content

Commit 54f649c

Browse files
ES-Alexanderpatrickelectric
authored andcommitted
core: frontend: VideoStreamCreationDialog: use even default UDP ports
- Odd ports can be assumed as allocated to audio streams - May improve stream detection robustness with control stations like QGroundControl
1 parent b7c2ffe commit 54f649c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -439,13 +439,13 @@ export default Vue.extend({
439439
case StreamType.UDP:
440440
if (!this.stream_endpoints[index].includes('udp://')) {
441441
// Vue.set() forces the update of a nested property
442-
Vue.set(this.stream_endpoints, index, `udp://${this.user_ip_address}:${5600 + index}`)
442+
Vue.set(this.stream_endpoints, index, `udp://${this.user_ip_address}:${5600 + 2 * index}`)
443443
}
444444
break
445445
case StreamType.UDP265:
446446
if (!this.stream_endpoints[index].includes('udp265://')) {
447447
// Vue.set() forces the update of a nested property
448-
Vue.set(this.stream_endpoints, index, `udp265://${this.user_ip_address}:${5600 + index}`)
448+
Vue.set(this.stream_endpoints, index, `udp265://${this.user_ip_address}:${5600 + 2 * index}`)
449449
}
450450
break
451451
case StreamType.RTSP:

0 commit comments

Comments
 (0)