I encountered an issue when playing WebRTC video using the H5 video tag on an iPhone with iOS 17.
After performing the following operations, the video automatically plays in fullscreen mode:
- Create the video tag, specify the playback source, and set the autoplay attribute to true.
- Call the API to enter fullscreen playback mode.
- Exit fullscreen by swiping with a finger.
- Stop playback and destroy the video tag.
- Repeat step 1;
at this point, the video does not correctly default to inline playback but instead automatically plays in fullscreen.
It seems as if the system has cached the previous fullscreen state, even though I have exited fullscreen, and the same result occurs with different browsers.
I have set the 'playsinline' and 'webkit-playsinline' attributes for the video tag. Anyone encountered the same issue? I would appreciate any solutions that can be shared.