iBicha / UnityYoutubePlayer

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

VideoPlayer cannot play url: ... #35

Closed baststar closed 3 years ago

baststar commented 3 years ago

I tested this (maybe) nice YoutubePlayer, but i only get the error:

WindowsVideoMedia error 0xc00d36c4 while reading https://www.youtube.com/watch?v=tTlwByBuJ1k
VideoPlayer cannot play url: https://www.youtube.com/watch?v=tTlwByBuJ1k

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. :(

iBicha commented 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

baststar commented 3 years ago

Ahh thank you!!