youtube / youtube-ios-player-helper

Lightweight helper library that allows iOS developers to add inline playback of YouTube videos through a WebView
Other
1.64k stars 677 forks source link

Delegate doesn't call playerView(_ :, didChangeTo:) correct #487

Open akapate opened 1 year ago

akapate commented 1 year ago

Hello,

Sometimes delegate doesn't call playerView(_ playerView: YTPlayerView, didChangeTo state: YTPlayerState) with .playing state, but video is playing correct at this moment.

Logged states:

.buffering (really buffering)
.buffering (actually playing)

There are always .buffering double call and no more state updates when reproducing.

Reproducibility: About 1 case out of 10.