youtube-ios-player-helper
youtube-ios-player-helper copied to clipboard
didChangeToState Delegate method not getting fired
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?
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).