iBicha / UnityYoutubePlayer

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

Estimated download time? #65

Closed hiagomdd closed 4 months ago

hiagomdd commented 3 years ago

(I do not speak English) I would like to know if there is a way to show the user the video download time, it's not a problem with the package, but I think this is the best place to ask about it, and a sub-question youtube might not like this right? maybe in the case of a big audience.

iBicha commented 2 years ago

I would like to know if there is a way to show the user the video download time

It's possible, but comes to general download speed and ETA from a url, rather than something specific to this package. This package uses a UnityWebRequest, so it's possible to at least show the progress with https://docs.unity3d.com/ScriptReference/Networking.UnityWebRequest-downloadProgress.html.

I don't think I will prioritize this on my side, but I'll keep this open in case someone wanted to pick this feature up and contributes a pull request.

youtube might not like this right? maybe in the case of a big audience.

Probably not. Obviously this package is to be used without warranty under the "unlicensed" license. For what youtube might or might not like, you should check youtube's TOS.

iBicha commented 4 months ago

Closing since this is a feature is not tightly related to the package as I said, but something you would read from the networking library as I mentioned. It's been a few years, I don't think it will be a priority, but a pull request to implement this in a sample is welcome