Please don't use this event. It fires multiple events per second, and will turn on sensors that might otherwise not be needed, I think. Using this will impact battery life.

I suggest that you use the resize event as other patches were trying to. Ignore resizes when we're in video playing mode, and reset the titles every time you transition from player mode to thumbnail mode.  You can determine portrait or landscape mode just by comparing window.innerWidth to window.innerHeight.