AVPlayer in “background”

Hey, so I’m writing a music/video application in swiftui. it has tabs where one of the tabs is the “now playing” tab showing the video currently being played. it works well, however when navigating to another tab and back to now playing has some weird effect on the video. Audio continues fine but video seems to speed up when I return to the tab to catch up with current audio. can you please help?

AVPlayer in “background”
 
 
Q