Description on iPhone 14 + iOS 16.4.1 self video not rendering, we have changed nothing in our code, working fine in iOS 16.3 and below devices and self video is visible on opponent side only self video not showing, rendering on canvas
received these errors in Rollbar from iOS 16.4 devices:
TypeError: null is not an object (evaluating ‘e.getExtension’)
I have identified the root cause of the issue and fixed it. Safari 16.4 recently added support of OffscreenCanvas and we are using if (window.OffscreenCanvas === ‘function’) then render self video in video element otherwise in canvas. Now, we are using stream.isRenderSelfViewWithVideoElement() for this.
Glad you were able to resolve that behavior by leveraging stream.isRenderSelfViewWithVideoElement(). I am linking the support documentation on this topic for reference. I should note that there is an example implementation that works in all browsers and includes catch statements to help with debugging