The media-container element is the parent class of media-controller and handles identifying the child media element via the slot="media" attribute, and also handles hiding and showing of controls. Controls will not work inside the media-container without extra code. Use media-controller if you want the controls to work automatically.
Use the autohide="[seconds]" to change how quickly control elements will hide. Set to -1 to stop hiding.