Modifies CSS of video elements, setting object-fit to 'contain' which automatically fits videos in the player and fullscreen mode.
Dies sind alle Versionen des Skriptes. Nur Versionen anzeigen, bei denen sich der Quelltext geändert hat.
v1.1 - removed comment markup of videoElement.style.objectFit as failure to have it resulted in not resizing the video on fullscreen. Removed style.width and style.height changes. Removed fullScreen listeners and fullscreen checks as initial CSS update on page load applies fix to both the player and fullscreen video.