ios17 remember full screen status and playsinline not working

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:

  1. Create the video tag, specify the playback source, and set the autoplay attribute to true.
  2. Call the API to enter fullscreen playback mode.
  3. Exit fullscreen by swiping with a finger.
  4. Stop playback and destroy the video tag.
  5. 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.

ios17 remember full screen status and playsinline not working
 
 
Q