When watching videos on iOS fullscreen and clicking 'Done' in my video I go back to the page to a smaller state of the video but I want to trigger a function.
I've tried
myPlayer.on('ended', function() { });
myPlayer.addEventListener('ended', function(){ });
However, these detect if the video is ended and not when the user clicks 'Done' in the middle of the video.
Is there a method that can detect if the video leaves the fullscreen state?
done
is a sort ofpause
. So you can check if that events triggers combined with thecurrentTime
value. – Ofir Baruch