Commit Graph

52 Commits

Author SHA1 Message Date
baigao-X
3fb43c5fef
feat: 增加webrtc代理拉流 (#4389)
Some checks failed
Android / build (push) Has been cancelled
CodeQL / Analyze (cpp) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
Docker / build (push) Has been cancelled
Linux / build (push) Has been cancelled
macOS / build (push) Has been cancelled
Windows / build (push) Has been cancelled
- 增加客户端模式,支持主动拉流、推流:
   - addStreamProxy接口新增支持whep主动拉流,拉流地址目前只兼容zlm的whep url。
   - addStreamPusherProxy接口新增支持whip主动推流,推流地址目前只兼容zlm的whip url。
   - 以上推流url格式为webrtc[s]://server_host:server_port/app/stream_id?key=value, 内部会自动转换为http[s]://server_host:server_port/index/api/[whip/whep]?app=app&stream=stream_id&key=value。

- 增加WebRtc p2p 模式:
  - 增加 ICE FULL模式。
  - 增加STUN/TURN 服务器。
  - 增加websocket 信令。
  - 增加P2P代理拉流。

---------

Co-authored-by: xia-chu <771730766@qq.com>
Co-authored-by: mtdxc <mtdxc@126.com>
Co-authored-by: cqm <cqm@97kid.com>
2025-09-20 16:23:30 +08:00
baigao-X
1c8ed1c55a
Add srt caller mode and stream encryption support. (#4088)
Add srt caller mode and stream encryption support.
1. Support srt caller mode, realize srt proxy pull stream proxy push
stream;
url parameter format such as: srt://127.0.0.1:9000?streamid=#!
::r=live/test11
2. Support srt stream encrypted transmission in caller and listener
mode.

---------

Co-authored-by: xiongguangjie <xiong_panda@163.com>
2024-12-28 20:21:29 +08:00
xiongguangjie
87277ac91a
Optimaztion code for srt (#3934) 2024-09-28 10:11:39 +08:00
alex
4152dcd409
AI automatically translates all comments in the code into English (#3917) 2024-09-19 14:53:50 +08:00
johzzy
f49aed7a32
srt optimization code for query poller (#3334)
- add querySrtTransport, improve code.
- update SrtTransportManager key
- fix some warning
2024-03-02 18:25:32 +08:00
xiongziliang
946945ce7b 优化代码
整理代码
2022-11-12 22:06:09 +08:00
夏楚
2f9b3e187b
Merge pull request #1984 from Dw9/master
c api support srt server
2022-09-23 14:29:12 +08:00
xiongguangjie
c363b30360 srt optimize ack send logic ignore too many ack packet 2022-09-23 09:35:10 +08:00
Dw9
43bf7c7918 c api support srt server 2022-09-22 21:18:34 +08:00
xiongguangjie
02aad5d256 srt avoid ack time map memory not release 2022-09-22 19:21:14 +08:00
xiongguangjie
a74a9ec0d7 remove srt debug log 2022-09-22 12:03:53 +08:00
xiongguangjie
801f705628 fix srt ack packet packet buf length error 2022-09-22 12:00:02 +08:00
xiongguangjie
642ca4997a add more dump 2022-09-22 01:07:10 +08:00
xiongguangjie
533f35dac4 copy srt estimated link capacity algorithm 2022-09-22 00:34:42 +08:00
xiongguangjie
ea35002be8 copy srt official packet recve rate algorithm 2022-09-21 19:21:49 +08:00
xiongguangjie
ec1942fa81 srt connection transfer support 2022-09-20 00:39:42 +08:00
xiongguangjie
67ad2a49c3 srt is player stop handleshake timert 2022-08-27 15:18:32 +08:00
xiongguangjie
f9f6fd136a srt handle packet send repeate by timer 2022-08-27 15:06:03 +08:00
xiongguangjie
602c8e068b srt handshake packet send 3 times 2022-08-27 13:25:23 +08:00
xiongguangjie
beb6383e72 optimize srt handle shake 2022-08-27 12:46:35 +08:00
xiongguangjie
16e791b83c srt use reference value 2022-07-06 21:40:24 +08:00
xiongguangjie
5162cf6112 more debug info for srt 2022-06-22 18:41:51 +08:00
xiongguangjie
dea848610a more detail printf for handshake 2022-06-22 18:26:37 +08:00
xiongguangjie
90874b2b04 dump unsupport handshake 2022-06-22 18:11:20 +08:00
xiongguangjie
fda4e83ae4 srt support tlpktdrop=0 feature 2022-06-18 13:01:04 +08:00
xiongguangjie
b771274a7f fix recv cycle buffer crash and avoid send nak packet exceed mtu 2022-06-12 23:35:30 +08:00
xiongguangjie
6503d95853 add cyclebuffer for recv buf 2022-06-12 21:11:50 +08:00
xiongguangjie
9e18428d7b delay min is 120ms 2022-06-11 23:50:47 +08:00
xiongguangjie
ce7787fe33 force use srt flag 0xbf 2022-06-11 23:11:14 +08:00
xiongguangjie
2e097f13b1 only use periodic NAK 2022-06-11 23:04:24 +08:00
xiongguangjie
4b9f789c79 add srt recv and send packet buf size 2022-06-11 22:51:11 +08:00
xiongguangjie
49a0183df0 fix clang format change include order result in windows build error 2022-06-09 22:54:24 +08:00
xiongguangjie
f58211fb08 optimize send nack when check packet lost send nack immediately 2022-06-09 19:30:03 +08:00
ziyue
e5ca3aa0fb 格式化代码 2022-06-07 10:01:42 +08:00
ziyue
e415230e47 格式化srt相关代码 2022-06-07 09:52:20 +08:00
xiongguangjie
c92fc8a4a8 format code and remove some useless code 2022-06-06 20:40:04 +08:00
xiongguangjie
83d75c9a72 add srt config for lantency multiplier 2022-06-06 19:55:47 +08:00
xiongguangjie
9f357c24b8 avoid seq cycle 2022-06-06 18:18:26 +08:00
xiongguangjie
b8806657cd for srt lantency calculate when handshake 2022-06-05 14:09:35 +08:00
xiongguangjie
3cca4015c5 fix rtt and rtt variance 2022-06-05 12:13:28 +08:00
xiongguangjie
62dfed39f7 fix timelatency not take effect and avoid buffer is liner avoid cycle 2022-06-05 11:07:42 +08:00
xiongguangjie
adaffcc245 prevent pkt seq cycle and time stamp cycle 2022-06-04 22:09:56 +08:00
xiongguangjie
71ce31d5c0 for some optimize and anti pkt lost and force pop packet when too late 2022-06-04 20:51:49 +08:00
xiongguangjie
92420f8392 check stream id 2022-06-04 13:30:59 +08:00
xiongguangjie
af9bd2dd0a fix streamid zero error 2022-06-04 12:03:56 +08:00
xiongguangjie
91aa9c494c srt can play stream 2022-06-04 11:23:18 +08:00
xiongguangjie
7f65e082f5 can build prepare for play ts stream by srt 2022-06-03 22:47:52 +08:00
xiongguangjie
82da99eef3 add shutdown packet and flow report 2022-06-03 21:17:01 +08:00
xiongguangjie
7606dd7110 for srt push fix ack paramter error result in pkt lost 2022-06-03 20:18:34 +08:00
xiongguangjie
ddc5b59a65 some change 2022-06-03 17:49:43 +08:00