youtube-ios-player-helper icon indicating copy to clipboard operation
youtube-ios-player-helper copied to clipboard

didChangeToState Delegate method not getting fired

Open pathikhb opened this issue 4 years ago • 1 comments

Using the latest version of YTPlayerView. The youtube videos load fine in the player, however, I noticed that when I pause or do other actions, the "didChangeToState" delegate method never gets fired. What am I doing wrong?

pathikhb avatar Aug 26 '20 20:08 pathikhb

I tested the latest version of the library (1.0.2) with our sample app and didChangeToState delegate method is working fine.

Check the sample app which is located in https://github.com/youtube/youtube-ios-player-helper/tree/master/Project/youtube-player-ios-example. Try to see if you have any differences. Notice that you need to set a class as the delegate to receive delegate method calls (for example https://github.com/youtube/youtube-ios-player-helper/blob/master/Project/youtube-player-ios-example/youtube-player-ios-example/SingleVideoViewController.m#L32).

brol1dev avatar Oct 01 '20 20:10 brol1dev