Description
Short description
Live Stream/End Stream with WebRTC took almost 100% machine resources and hung the browser for 5-15 seconds on Safari browser on MacOS of Apple chip.
Environment
- Operating system and version: Mac OS Sonoma M1/M2 16G RAM. I could also reproduce the issue on Mac OS Ventura
- Ant Media Server version: Enterprise Edition 2.5.0 20221012_1646
- Browser name and version: Safari Version 17.0 (19616.1.27.211.1)
Steps to reproduce
- Open the Ant media live demo server (https://antmedia.io/live-demo/) or our development server (https://tstantmds.redhotpie.com.au:5443/LiveApp/index.html)
- Observe the browser's responsiveness between the time the page loads and the video from the camera appears.
Expected behavior
The video appears after 1-2 seconds, same as what the standard webRTC takes - see example at https://webrtc.github.io/samples/src/content/getusermedia/gum/
Actual behavior
The browser hung from when I clicked on the Allow button to allow the camera until the cam appeared. The app appeared to take almost 100% CPU and network resources for about 5-15 seconds. The hung time period is to 15 seconds on Apple M1 Mac Pro, down to 5 seconds on Apple M2 Mac Pro. This issue is only observed on the Safari browser on Mac OS with an Apple chip. It's not happening on other browsers on the same machine, nor the Safari browser of Intel Mac
Ask your questions on Ant Media Github Discussions
Metadata
Assignees
Type
Projects
Status
✅ Done