iBicha / UnityYoutubePlayer

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

360 Videos don't work #126

Open Polmo97 opened 4 days ago

Polmo97 commented 4 days ago

Screenshot 2024-07-05 154217

I installed this packages for an application that requires viewing selected youtube videos in VR, for base Plane surface videos it does work, but for 360 videos it give me a warning and the texture remain white. "Color primaries 0 is unknown or unsupported by WindowsMediaFoundation. Falling back to default may result in color shift."

I even downloaded the 2 samples, but both give the same result. Do you have any fix for this?

iBicha commented 4 days ago

Unfortunately sometimes video formats are not supported on some platforms. If you notice in the inspector, the itag is set to 137. This basically means a 1080p video of type video/mp4; codecs="avc1.640028".

What you can do is try another itag (for example 248, which is a 1080p video of type video/webm; codecs="vp9")

You can open the api in the browser (e.g. https://invidious.fdn.fr/api/v1/videos/sPyAQQklc1s) and find the many video formats in adaptiveFormats.