Why does Safari 17 ignore playsInline in the Angular app, causing the video to switch to fullscreen initially?

In Angular application, Safari 17 disregards the playsInline attribute, causing the video to switch to fullscreen mode upon first entering the page. However, upon navigating away and returning, the issue resolves itself. Yet, when opening a new tab and navigating back to the video component, the problem reoccurs. The video content, sourced from a mediastream, is added via srcObject to the video element. Any insights on why this behavior is occurring?