1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00
srs/trunk/research/players/js
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>
2024-10-15 19:00:07 +08:00
..
adapter-7.4.0.js For #1638, #307, use webrtc adapter.js for demo. 2020-03-14 21:14:17 +08:00
adapter-7.4.0.min.js For #1638, #307, use webrtc adapter.js for demo. 2020-03-14 21:14:17 +08:00
AdobeFlashPlayerInstall.swf extract the components of js 2013-12-25 12:57:30 +08:00
bootstrap.min.js extract the components of js 2013-12-25 12:57:30 +08:00
dash-v4.5.1.all.min.js DASH: Fix number mode bug to make it run. v5.0.96 (#3240) 2022-11-24 18:13:49 +08:00
dash.all.min.js.map DASH: Fix number mode bug to make it run. v5.0.96 (#3240) 2022-11-24 18:13:49 +08:00
hls-1.4.14.min.js Upgrade hls.js and set in low latency mode. v6.0.112 (#3924) 2024-02-05 21:37:29 +08:00
hls.min.js.map Upgrade hls.js and set in low latency mode. v6.0.112 (#3924) 2024-02-05 21:37:29 +08:00
jquery-1.12.2.min.js Upgrade jquery from 1.10.2 to 1.12.2 (#3571) 2023-06-30 06:28:10 +08:00
jquery-1.12.2.min.map Upgrade jquery from 1.10.2 to 1.12.2 (#3571) 2023-06-30 06:28:10 +08:00
json2.js refine the ui, link the players to the api server static dir 2013-12-25 23:42:23 +08:00
mpegts-1.7.3.min.js RTMP: Support enhanced RTMP specification for HEVC. v6.0.42 (#3495) 2023-04-08 09:18:10 +08:00
mpegts.js.map RTMP: Support enhanced RTMP specification for HEVC. v6.0.42 (#3495) 2023-04-08 09:18:10 +08:00
srs.log.js change ui version to 1.15, fix the publiser bug, support chrome/firefox/safari/ie browsers. 2013-12-26 08:56:13 +08:00
srs.page.js RTC: Refine FFmpeg opus audio noisy issue. v5.0.197 v6.0.97 (#3852) 2023-11-04 16:21:44 +08:00
srs.player.js Detect whether flash enabled for srs-player. 3.0.73 2019-12-18 11:06:01 +08:00
srs.publisher.js refine bandwidth test 2013-12-27 18:49:34 +08:00
srs.sdk.js RTC2RTMP: Fix screen sharing stutter caused by packet loss. v5.0.216 v6.0.157 v7.0.18 (#4160) 2024-10-15 19:00:07 +08:00
srs.utility.js refine the demo pages, move scripts after body. 2015-08-20 15:19:43 +08:00
swfobject.js refine the ui, add osmf/jwplayer 2013-12-18 12:37:46 +08:00
winlin.utility.js Replace deprecated String.prototype.substr() (#2948) 2022-03-07 08:02:27 +08:00