Commit Graph

29 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
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
mtdxc
754073918a
Header refactor (#2115)
* 优化MultiMediaSourceMuxer头文件包含

* 将MediaSinkDelegate和Demux移到MediaSink中

* MediaSource头文件重构, 独立出PacketCache.h
精简Frame和Track的头文件

* Rtmp头文件重构

* Rtsp头文件重构

* webrtc头文件重构

* 规范.h头文件包含,并将其移到.cpp中:
- 尽量不包含Common\config.h
- Util\File.h
- Rtsp/RtspPlayer.h
- Rtmp/RtmpPlayer.h

* 删除多余的Stamp.h和Base64包含
2022-11-29 11:07:13 +08:00
xiongguangjie
c363b30360 srt optimize ack send logic ignore too many ack packet 2022-09-23 09:35:10 +08:00
xiongguangjie
801f705628 fix srt ack packet packet buf length error 2022-09-22 12:00:02 +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
f9f6fd136a srt handle packet send repeate by timer 2022-08-27 15:06:03 +08:00
xiongguangjie
beb6383e72 optimize srt handle shake 2022-08-27 12:46:35 +08:00
xiongguangjie
6503d95853 add cyclebuffer for recv buf 2022-06-12 21:11:50 +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
b8806657cd for srt lantency calculate when handshake 2022-06-05 14:09:35 +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
71ce31d5c0 for some optimize and anti pkt lost and force pop packet when too late 2022-06-04 20:51:49 +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
xiongguangjie
9fadc22c80 srt can push but bandwith estimate has error 2022-06-03 16:47:53 +08:00
xiongguangjie
aa2ff01d9f first commit for srt intergrate 2022-06-03 13:25:32 +08:00