It is not entirely clear how the picture-in-picture API interacts with the page visibility API when the picture-in-picture video is visible but the browser itself is minimized:
visible
The Document is at least partially visible on at least one screen. This is the same condition under which the hidden attribute is set to false.
From this section it looks like visibilityState should be "visible" in such a situation.
It would probably be a good idea to specify the interaction with page visibility explicitly in the picture-in-picture API.
It is not entirely clear how the picture-in-picture API interacts with the page visibility API when the picture-in-picture video is visible but the browser itself is minimized:
Page visibility API, visibilityState attribute defines (emphasis added):
From this section it looks like visibilityState should be "hidden" in such a situation.
However, the enum definition says (emphasis added):
From this section it looks like visibilityState should be "visible" in such a situation.
It would probably be a good idea to specify the interaction with page visibility explicitly in the picture-in-picture API.