Enforce window-based max media height in mediaelement