Go to documentation repository
Page History
...
Tip |
---|
Odtwarzanie dźwięków z mikrofonu Klienta na głośnikach kamery |
To transmit audio from the Client's microphone behind NAT to the Server's or camera's loudspeaker, do the following:
Aby móc trasmitować audio z mikrofonu Klienta znajdującego się za NAT do głośnika Serwera bądź kamery, wykonaj następujące kroki:
- Na Kliencie określ unikalny zasięg portów oraz zewnętrzny adres IP routera; w tym celu:
- Dodaj zmienną środowiskową
- Add an NGP_CLIENT_PORT_BASE environmental variable and set its value to the first port number in the range (see Appendix 10. Creating system variable).i ustaw jej wartość na pierwszy port w zasięgu (zobacz: Załącznik 10. Tworzenie zmiennych systemowych).
Dodaj zmienną środowiskową Add an NGP_CLIENT_PORT_SPAN environmental variable and set its value to the number of ports in the rangei ustaw jej wartość na liczbę portów w zasięgu.
Note title AttentionUwaga! We recommend you to use no less than 100 portsZalecane jest użycie nie mniej niż 100 portów.
Add anNote title Attention! If you have multiple Clients within your network, their port ranges must not overlap.
Uwaga! Jeśli korzystasz z wielu Klientów w jednej sieci, ich zasięgi portów nie mogą się na siebie nakładać.
- Dodaj zmienną środowiskową NGP_ALT_ADDR environmental variable and set its value to the public IP address of the externa router.
- Configure forwarding of the specified ports on both external and internal router.
Example.
To transmit audio from microphones connected to Client 1 and Client 2 to the Server's or camera's loudspeaker, do the following:
- i ustaw jej wartość na publiczny adres IP zewnętrznego routera.
- Skonfiguruj przekierowywanie określonych portów na zarówno zewnętrznym, jaki i wewnętrznym routerze.
Przykład:
Aby móc transmitować audio z mikrofonów na Klientach 1 i 2 do głośnika Serwera lub kamery na Serwerze, wykonaj następujące kroki:
- Na Kliencie 1 ustaw zasięg portów na 20555-21554 oraz publiczny adres IP routera dostawcy Internetu.
- Na Kliencie 1 ustaw zasięg portów na 21555-22554 oraz publiczny adres IP routera dostawcy Internetu.
- Skonfiguruj przekierowywanie portów na wewnętrznym routerze:
- porty 20555-21554 do wewnętrznego adresu IP Klienta 1 oraz portów 20555-21554;
- porty 21555-22554 do wewnętrznego adresu IP Klienta 2 oraz portów 21555-22554;
- Skonfiguruj przekierowywanie portów na routerze dostawcy Internetu:
- porty routera 20555-21554 do adresu IP wewnętrznego routera oraz portów 20555-21554;
- porty routera 21555-22554 do adresu IP wewnętrznego routera oraz portów 21555-22554.
- On Client 1, set port range to 20555-21554, and the public IP address of your Internet provider's router.
- On Client 2, set port range to 21555-22554, and the public IP address of your Internet provider's router.
- Configure port forwarding on the internal router:
- ports 20555-21554 to the internal IP address of Client 1 and ports 20555-21554;
- ports 21555-22554 to the internal IP address of Client 2 and ports 21555-22554;
- Configure port forwarding on the provider's router:
- router ports 20555-21554 to the IP address of the internal router and ports 20555-21554;
- router ports 21555-22554 to the IP address of the internal router and ports 21555-22554;