Solution 1 :
I guess not. Youtube API is kind of buggy. I had some issues regarding this. Some features work fine in debugging mode in my Android Studio IDE, but on regular play does not work.
To play videos just use .loadVideo(string)
Problem :
The following code gets the video cued but it does not play it. However, it does play it if I am debugging it. Am I missing something here?
player?.cueVideo("D7SlGMif9hw")
player?.play()