rememberVideoPlayerState

Creates and manages an instance of VideoPlayerState within a composable function, ensuring proper disposal of the player state when the composable leaves the composition. This function is used to remember the video player state throughout the composition lifecycle.

Return

The remembered instance of VideoPlayerState, which provides functionalities for controlling and managing video playback, such as play, pause, stop, and seek.