Closed baststar closed 3 years ago
You need to set the url in the YoutubePlayer component, not the VideoPlayer
component.
Check out the examples under https://github.com/iBicha/UnityYoutubePlayer/tree/master/Assets/YoutubePlayer/Scenes
Ahh thank you!!
I tested this (maybe) nice YoutubePlayer, but i only get the error:
New Unity-Project with: Unity 2021.1.0b5.1871 Personal DX11 Windows 10 10.0.19042 HEVC-Extension not installed... (If this is a dependency for YT-Videos - how would i deploy a game where you can watch YT-Videos?)
Tested also with Unity 2018.4.31f1 Personal DX11
Just added the dependencies, added the videoplayer-gameobject, changed source to URL, inserted a youtube-link and pressed play. :(