Skip to content

Commit

Permalink
adjust default port configuration
Browse files Browse the repository at this point in the history
fixes rdmtc#344
  • Loading branch information
cupracer committed Jan 12, 2022
1 parent d5b86ff commit ecd52c4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions nodes/redmatic-homekit-camera.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
return Boolean(String(val).match(/^\d{3}-\d{2}-\d{3}$/));
}
},
port: {value: 51912, type: Number, required: true, validate: function (val) {
return val > 1024 && val < 65536;
port: {value: '51912', required: true, validate: function (val) {
return RED.validators.number(val) && val > 1024 && val < 65536;
}
},videoProcessor: {value: 'ffmpeg'},
source: {value: '-re -i rtsp://myfancy_rtsp_stream'},
Expand Down Expand Up @@ -160,4 +160,4 @@

<script type="text/x-red" data-help-name="redmatic-homekit-camera">

</script>
</script>
6 changes: 3 additions & 3 deletions nodes/redmatic-homekit-tv.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
return Boolean(String(val).match(/^\d{3}-\d{2}-\d{3}$/));
}
},
port: {value: 51952, type: Number, required: true, validate: function (val) {
return val > 1024 && val < 65536;
port: {value: '51952', required: true, validate: function (val) {
return RED.validators.number(val) && val > 1024 && val < 65536;
}
},
inputsources: {
Expand Down Expand Up @@ -168,4 +168,4 @@

<script type="text/x-red" data-help-name="redmatic-homekit-tv">

</script>
</script>

0 comments on commit ecd52c4

Please sign in to comment.