提交 b99eebca authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

Merge branch 'v2' of github.com:versatica/mediasoup into v2

......@@ -98,6 +98,25 @@ Runs the `tidy:worker` gulp task.
Performs C++ code check using [clang-tidy](http://clang.llvm.org/extra/clang-tidy/) following following `worker/.clang-tidy` rules.
clang-tidy uses a [JSON compilation database](http://clang.llvm.org/docs/JSONCompilationDatabase.html) to get the information on how a single compilation unit is processed.
In order to generate this file we use [Bear](https://github.com/rizsotto/Bear). This works on linux only.
Once installed, compile mediasoup as follows:
```bash
$ bear make
```
An output file `compile_commands.json` is generated which must be copied to the [worker](worker/) directory after making the following changes:
Replace the references of the current directory by the keywork 'PATH':
```bash
$ sed -i "s|$PWD|PATH|g" compile_commands.json
```
Edit the file and remove the entry related to Utils/IP.cpp compilation unit, which is automatically created and does not follow the clang-tidy rules.
*NOTE:* It just works on Linux and OSX.
### `gulp test`
......
......@@ -8,21 +8,12 @@
* Set a proper value for Producer::FullFrameRequestBlockTimeout (currently 1 second).
* Should RtpStream::InitSeq() reset `received` to 0? We do it but it may break RTCP reports in both RtpStreamRecv and RtpStreamSend.
- NOTE: We have removed `received = 0` from `InitSeq()`, so we still send RTCP SenderReports on paused Consumers.
- Also check whether expectedPrior and receivedPrior should just belong to RtpStreamRecv rather than RtpStream (yes).
* Check `appData` everywhere.
* Remove DEPTH stuff.
* Redo the compile_commands_template.json.
- NOTE: It's updated (manually). Should document in BUILDING.md how to automate it.
* Rethink the auto close of the worker `Transport` when receiving a DTLS CLOSE ALERT (or when it's just TCP and the connection fails...). Yes/no? BTW it's generating some issues because the JS closes the Producer/Transport and gets `request failed [id:84026423, reason:"Consumer/Transport does not exist"]` (because it was already closed due to DTLS ALERT).
* Move the RTCP timer from Peer to Transport.
* Implement `mandatoryCodecPayloadTypes`.
* JS: Remove tons of useless debugs (for example in `Peer._createProducer()`).
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论