When changing source, the next video starts playing automatically
hassankhan opened this issue · comments
Hassan Khan commented
Every time I change the sources
property, the video automatically starts playing - is there any way to stop this from happening?
Hassan Khan commented
As far as I can tell, it's because the onSourceChange()
method calls the initYoutubePlayer()
method, which finally calls the loadVideoById()
method on the YouTube player. Could this be changed to cueVideoById()
instead?
Hassan Khan commented
Created pull request: #49
Raúl Jiménez commented
Looks good, I'll merge it, thank you! :)
Hassan Khan commented
Thanks :)