rememberVideoPlayer

Remembers a player from factory and closes it when this leaves composition.

remember survives recomposition but not a configuration change, so every rotation tears the player down and rebuilds it. Hoist the player into something that outlives the screen for anything longer-lived than a throwaway preview.

Return

The remembered player, the same instance across recompositions.