When I am open any website with movie inside WKWebKit and press on players this movie will be open inside some player, where I can pause, remove etc. My question How I can detect when this iframe(window or player, I don't know how it is named) is open or closed and do something in background if window open or closed.
For clarity I am attached screenshot of simulator where this player was opened if I am press on player with movie on website.