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
Jacob Su b0e7f62ca7 RTC2RTMP: Fix screen sharing stutter caused by packet loss. v5.0.216 (#4160)
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.

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.

><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>
5 months ago
..
3rdparty Switch to 2013-2024. v5.0.205 1 year ago
auto Enhancing the compatibility of options.sh. v5.0.204 (#3916) 1 year ago
conf Heartbeat: Report ports for proxy server. v5.0.215 (#4171) 6 months ago
doc RTC2RTMP: Fix screen sharing stutter caused by packet loss. v5.0.216 (#4160) 5 months ago
etc/init.d Squash: Fix bugs 3 years ago
gdb ST: Support show coroutines. 4 years ago
ide/srs_clion Change the hls_aof_ratio to 2.1. v5.0.200 (#3886) 1 year ago
modules Moduels: Refine the description 4 years ago
packaging Windows: Refine cygwin pipeline (#3260) 2 years ago
research RTC: Refine FFmpeg opus audio noisy issue. v5.0.197 (#3852) 1 year ago
scripts Package script support extra options. v5.0.102 2 years ago
src RTC2RTMP: Fix screen sharing stutter caused by packet loss. v5.0.216 (#4160) 5 months ago
usr/lib/systemd/system Squash: Support RPM. Fix bugs. 3 years ago
.gitignore For #2136: API: Cleanup no active streams for statistics. v5.0.42 3 years ago
AUTHORS.md Update new authors. 2 years ago
AUTHORS.txt Update AUTHORS 4 years ago
Dockerfile.builds Use new cache image name. v5.0.186 1 year ago
Dockerfile.cov GB28181: Enable regression test for gb28181. v5.0.122 2 years ago
Dockerfile.pkg GB28181: Enable GB for CentOS 7 package. v5.0.103 2 years ago
Dockerfile.test GB28181: Enable regression test for gb28181. v5.0.122 2 years ago
configure Merge pull request from GHSA-gv9r-qcjc-5hj7 12 months ago