YouTubePlayerKit icon indicating copy to clipboard operation
YouTubePlayerKit copied to clipboard

After a player source hit an error, YouTubePlayerKit.YouTubePlayer.State does not reset once loading a new valid video

Open kiddosai opened this issue 5 months ago • 2 comments

What happened?

After a player source hit an error, YouTubePlayerKit.YouTubePlayer.State does not reset once loading a new valid video

What are the steps to reproduce?

If you use the same player to load multiple videos and one of the video hit a failure like .embeddedVideoPlayingNotAllowed then the next video played with the same player will have the YouTubePlayer.State still set to the same error

What is the expected behavior?

YouTubePlayer.State should be reset when a new video is cued/loaded to a player

kiddosai avatar Aug 27 '24 20:08 kiddosai