You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
srs/trunk/research
Jacob Su 101382afd0
RTC2RTMP: Fix screen sharing stutter caused by packet loss. v5.0.216 v6.0.157 v7.0.18 (#4160)
## How to reproduce?

1. Refer this commit, which contains the web demo to capture screen as
video stream through RTC.
2. Copy the `trunk/research/players/whip.html` and
`trunk/research/players/js/srs.sdk.js` to replace the `develop` branch
source code.
3. `./configure && make`
4. `./objs/srs -c conf/rtc2rtmp.conf`
5. open `http://localhost:8080/players/whip.html?schema=http`
6. check `Screen` radio option.
7. click `publish`, then check the screen to share.
8. play the rtmp live stream: `rtmp://localhost/live/livestream`
9. check the video stuttering.

## Cause
When capture screen by the chrome web browser, which send RTP packet
with empty payload frequently, then all the cached RTP packets are
dropped before next key frame arrive in this case.

The OBS screen stream and camera stream do not have such problem.

## Add screen stream to WHIP demo

><img width="581" alt="Screenshot 2024-08-28 at 2 49 46 PM"
src="https://github.com/user-attachments/assets/9557dbd2-c799-4dfd-b336-5bbf2e4f8fb8">

---------

Co-authored-by: winlin <winlinvip@gmail.com>
4 months ago
..
api-server Upgrade hls.js and set in low latency mode. v6.0.112 (#3924) 1 year ago
apm APM: Extract research to projects. 2 years ago
arm Merge 4.0release, migrate to new website. 3 years ago
code-statistic SquashSRS4: Use SPDX-License-Identifier: MIT. 5.0.3 4 years ago
console Player: Fix empty img tag occupy 20px size in safari. v6.0.142 (#4029) 7 months ago
ffempty SquashSRS4: Use SPDX-License-Identifier: MIT. 5.0.3 4 years ago
frame Update 4 years ago
golang refine srs player to play hls. 9 years ago
gperftools Squash: Fix bugs 3 years ago
hls SquashSRS4: Use SPDX-License-Identifier: MIT. 5.0.3 4 years ago
msg_zerocopy ST: Simplify it, only Linux/Darwin, epoll/kqueue, single process. 5.0.2 4 years ago
players RTC2RTMP: Fix screen sharing stutter caused by packet loss. v5.0.216 v6.0.157 v7.0.18 (#4160) 4 months ago
python-subprocess finish the research for python-subprocess 11 years ago
srt-proxy A demo for SRT proxy. (#3869) 1 year ago
st ASAN: Support coroutine context switching and stack tracing (#4153) 6 months ago
thread-model Research: Add udp connect 4 years ago
wireshark GB28181: Support GB28181-2016 protocol. v5.0.74 (#3201) 2 years ago
favicon.ico Upgrade hls.js and set in low latency mode. v6.0.112 (#3924) 1 year ago
index.html Upgrade hls.js and set in low latency mode. v6.0.112 (#3924) 1 year ago