If you’re trying to hide an unempty staff (a staff that has music in it), I think you need to use a manual staff visibility change, and those seem to only take effect through the end of a flow.
If you want to hide it for the entire project, would it work for you to remove the player from the layout?