Coding memo
How to build
Mediasoup on Windows
bmMediasoupServer requires to build medissoup. In windows environment, it could be troublesome.
Mediasoup requires:
make, python3 and pip.
On VSCode, GitBash will be the best option as a terminal for node and yarn.
On the terminal make, python3 and pip must be run.
make Windows10環境でmakeコマンドを使用する方法
python3 and pip
install python for windows by installer (not store)
Copy python.exe as python3.exe
Add "C:\PythonXXX" and "C:\PythonXXX\Scripts" to Path= environment variable. It must before the windows' python.
Websocket from client
Main = RTC
lastSendTime and lastReceivedTime are recorded. But RTT is not recorded.
RTT will contain ms server's work. Because it usually work like "Client→Main→Media→Main→Client". So RTT could be very long.
Data = participant, contents, map etc.
Periodically send REQUEST_RANGE to server and server sendback some messages.
The round trip time is saved in
code: class DataConnection
private relayRttLast = 50
private relayRttAverage = 50