WebRTC - User medias - Black video screen when URL changed

Link sanbox: https://codesandbox.io/p/sandbox/webrtc-ios-lasted-issue-jzx9h5

Issue: Black video screen when url changed. Reproduce step:

  1. Get the source code on sanbox repo above
  2. Install packages by command "npm install"
  3. Start local web-app under https by command "HTTPS=true npm start"
  4. Update url by click button "Update URL search param"

OS: iOS v17.4.1 Browser: Safari Device: iPhone 11 pro

Anyone can help?

Note: it's works on iPhone X iOS version 16

Link video issue: https://streamable.com/rj07u8

WebRTC - User medias - Black video screen when URL changed
 
 
Q