srs/trunk/research/players/js
Haibo Chen(陈海博) 07e7984fdf
Player: Get codec by webrtc api: pc.getStats. v7.0.42 (#4310)
1. It cannot retrieve codec information on `Firefox` by
`getSenders/getReceivers`
2. It can retrieve codec information on `Chrome` by `getReceivers`, but
incorrect, like this:

![image](https://github.com/user-attachments/assets/e0bb93b1-ccd0-46c0-ae21-074934f66a1e)

3. So, we retrieve codec information from `getStats`, and it works well.
4. The timer is used because sometimes the codec cannot be retrieved
when `iceGatheringState` is `complete`.
5. Testing has been completed on the browsers listed below.
   - [x] Chrome
   - [x] Edge
   - [x] Safari
   - [x] Firefox

---------

Co-authored-by: winlin <winlinvip@gmail.com>
2025-06-04 10:28:46 -04: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 Player: Get codec by webrtc api: pc.getStats. v7.0.42 (#4310) 2025-06-04 10:28:46 -04: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