srs/trunk/src
Jacob Su 364bec264e RTC2RTMP: Fix screen sharing stutter caused by packet loss. v6.0.157 (#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:46:33 +08:00
..
app RTC2RTMP: Fix screen sharing stutter caused by packet loss. v6.0.157 (#4160) 2024-10-15 19:46:33 +08:00
core RTC2RTMP: Fix screen sharing stutter caused by packet loss. v6.0.157 (#4160) 2024-10-15 19:46:33 +08:00
kernel FLV: Refine source and http handler. v6.0.155 (#4165) 2024-09-01 13:03:50 +08:00
main Fix crash when quiting. v6.0.151 (#4157) 2024-08-24 22:41:21 +08:00
protocol Fix #3767: RTMP: Do not response empty data packet. v6.0.153 (#4162) 2024-09-01 06:41:20 +08:00
utest Config: Add more utest for env config. v6.0.147 (#4142) 2024-08-15 11:13:00 +08:00