iBicha / UnityYoutubePlayer

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

some video play fine, and others not why ? #66

Closed alexArayaM closed 2 years ago

alexArayaM commented 3 years ago

Hi, first of all thanks for this very good asset. Is very easy to use. I have a question: i downloaded the zip project and i was testing it, but i found that it was very good with some youtube videos but with others it had problems. i am looking the reason. Maybe some one could know. following is a list with some videos that did worked and the list that didn't work. Any help to clarify the reason will be very appreciated. Thanks.

videos that worked:

https://www.youtube.com/watch?v=oxdGWviiRpo&list=RDMMoxdGWviiRpo&start_radio=1
https://www.youtube.com/watch?v=31SXQLpdNyE&list=RD31SXQLpdNyE&start_radio=1
https://www.youtube.com/watch?v=vL4WjEsS6cQ
https://www.youtube.com/watch?v=oNwvOiRVURk

videos that did not worked: https://www.youtube.com/watch?v=sAebYQgy4n4 https://www.youtube.com/watch?v=Oextk-If8HQ

Thanks.

iBicha commented 2 years ago

Thanks for reporting this issue. I suspect that for some videos, youtube has more protection, and it verifies that the ip that requested the video is also the one that downloaded it. I tried it through the service and through a local youtube-dl command, and got different results.

This COULD justify having this package operate on two options: using the service, or a local cli of youtube-d (for desktop only).

What is your target os?

youtube-dl seems to be able to pass ip address as a network option https://github.com/ytdl-org/youtube-dl#network-options. There's also ways to pass in other information like cookies or headers. We will need to investigate this further.

alexArayaM commented 2 years ago

Hi. Thanks for the reply. we want to use UnityYoutubePlayer on a project targeted to windows (pc), we use unity 2021.1.16.

Please tell me, If you need some other info. Thanks again, and have a nice day.

iBicha commented 2 years ago

1.5.1 should address this issue on desktop platforms through local youtube-dl call. This will still be an issue on other platforms, such as mobile.