I tested the sample code on linux, Windows, Android and ios.
It works smoothly on other devices and browsers other than iOS. but the camera screen turns black on the ios screen and does not connect. I think some features related to the latest version of IOS need to be updated.