iBicha / UnityYoutubePlayer

Play YouTube videos in Unity
The Unlicense
336 stars 63 forks source link

Change youtube url with script #84

Closed DeveloperJake1 closed 2 years ago

DeveloperJake1 commented 2 years ago

How can I change the YoutubePlayer's url with script? I also need to know how to play/pause this with script.

iBicha commented 2 years ago

You can use YoutubePlayer.PlayVideoAsync(url) to load/prepare the video from Youtube. To pause/resume, you can VideoPlayer.Play / VideoPlayer.Pause