1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00
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>
2024-10-15 19:45:36 +08:00
..
3rdparty Switch to 2013-2024. v5.0.205 2023-12-30 09:29:07 +08:00
auto Enhancing the compatibility of options.sh. v5.0.204 (#3916) 2023-12-30 09:13:01 +08:00
conf Heartbeat: Report ports for proxy server. v5.0.215 (#4171) 2024-09-09 10:39:53 +08:00
doc RTC2RTMP: Fix screen sharing stutter caused by packet loss. v5.0.216 (#4160) 2024-10-15 19:45:36 +08:00
etc/init.d Squash: Fix bugs 2022-01-13 18:26:28 +08:00
gdb ST: Support show coroutines. 2020-12-10 11:36:24 +08:00
ide/srs_clion Change the hls_aof_ratio to 2.1. v5.0.200 (#3886) 2023-11-19 21:53:51 +08:00
modules Moduels: Refine the description 2021-04-21 11:18:35 +08:00
packaging Windows: Refine cygwin pipeline (#3260) 2022-11-21 14:32:26 +08:00
research RTC: Refine FFmpeg opus audio noisy issue. v5.0.197 (#3852) 2023-11-04 16:28:52 +08:00
scripts Package script support extra options. v5.0.102 2022-12-03 18:56:21 +08:00
src RTC2RTMP: Fix screen sharing stutter caused by packet loss. v5.0.216 (#4160) 2024-10-15 19:45:36 +08:00
usr/lib/systemd/system Squash: Support RPM. Fix bugs. 2021-11-04 07:37:17 +08:00
.gitignore For #2136: API: Cleanup no active streams for statistics. v5.0.42 2022-08-19 19:45:19 +08:00
AUTHORS.md Update new authors. 2022-12-31 12:22:05 +08:00
AUTHORS.txt Update AUTHORS 2021-08-25 07:43:35 +08:00
configure Merge pull request from GHSA-gv9r-qcjc-5hj7 2024-03-28 11:02:09 +08:00
Dockerfile.builds Use new cache image name. v5.0.186 2023-10-08 21:13:47 +08:00
Dockerfile.cov GB28181: Enable regression test for gb28181. v5.0.122 2022-12-31 19:36:49 +08:00
Dockerfile.pkg GB28181: Enable GB for CentOS 7 package. v5.0.103 2022-12-03 18:56:55 +08:00
Dockerfile.test GB28181: Enable regression test for gb28181. v5.0.122 2022-12-31 19:36:49 +08:00