iBicha / UnityYoutubePlayer

Play YouTube videos in Unity
The Unlicense
339 stars 64 forks source link

18 itag max quality formatStreams #130

Closed scorp2007 closed 3 months ago

scorp2007 commented 3 months ago

Hello. Why formatStreams returns only result 18? I understand this is the best video with sound? And it corresponds to 360 or 480 quality. I tried both the public server and my own, both are the same. How can I get a video with sound at least as indicated result 22 (720p)? Thank you.

iBicha commented 3 months ago

According to many people who investigated this, YouTube started discontinuing format 22 (perhaps it is completely gone by now). In the future, it might be not possible to play videos 720p+ without support for HLS/DASH (which is currently not supported by the default VideoPlayer component, but is supported by 3rd party paid assets)

scorp2007 commented 3 months ago

According to many people who investigated this, YouTube started discontinuing format 22 (perhaps it is completely gone by now). In the future, it might be not possible to play videos 720p+ without support for HLS/DASH (which is currently not supported by the default VideoPlayer component, but is supported by 3rd party paid assets)

that is, at the present time, in order to reproduce good quality in Unity, I need to launch sound and video separately? All adaptive high-quality formats are DASH and there the video is separate from the sound? I use it for WebGL and things are probably even worse there.

iBicha commented 3 months ago

Yes all the higher quality streams are video only or audio only, not both. You could try playing both yourself, but mostly you'll run into synchronization issues. This is why a DASH player is needed (it will synchronize for you, and adjusts quality based on internet speed)

scorp2007 commented 3 months ago

Yes all the higher quality streams are video only or audio only, not both. You could try playing both yourself, but mostly you'll run into synchronization issues. This is why a DASH player is needed (it will synchronize for you, and adjusts quality based on internet speed)

ah, it's sad to hear, earlier you said that there are some paid players for Unity that work with DASH, I wonder what these assets are and do they work in WebGL?

iBicha commented 3 months ago

I can't vouch for any because I haven't tried them myself and wouldn't know if they worked as advertised, but look at the unity asset store

scorp2007 commented 3 months ago

I can't vouch for any because I haven't tried them myself and wouldn't know if they worked as advertised, but look at the unity asset store

ok, thank you very much for explaining the situation