Re: [whatwg/fullscreen] Internal iframe fullscreen event missing? (#179)

thanks for the replies. yes, it's primarily for a button outside the iframe that would make the player go fullscreen and exit fullscreen but there is a more edgy case where both flows would be used  mixed. 

For example a user goes fullscreen via an external button, the player goes fullscreen but then uses the internal Vimeo player UI to exit fullscreen which is a button in the iframe. Maybe another case the user goes fullscreen via the Vimeo player's internal fullscreen button but the developer wants that the player exits fullscreen on a specific time which would require an API call from outside the iframe into the player.

I think it works though with postMessaging the fullscreen state. yes, the exiting by sending a postmessage from child to parent seemed to work.
https://github.com/vimeo/player.js/blob/master/src/player.js#L132-L147

see it in action here: https://player.vimeo.com/api/demo

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fullscreen/issues/179#issuecomment-677677881

Received on Thursday, 20 August 2020 13:53:40 UTC