Open mhadji05 opened 3 years ago
See
YoutubePlayer.PlayVideoAsync(string videoUrl = null, YoutubeDlOptions options = null, CancellationToken cancellationToken = default)
YoutubeDlOptions is an object to specify options passed to youtube-dl, such as format (quality) and user agent.
best
which is the highest video quality with both video and audio streams (usually at 720p)bestvideo[height<=?1080]
which is the highest video quality with only the video stream, and smaller or equal to 1080p.[ext=mp4]
(e.g. bestvideo[ext=mp4]
) so you don't get a webm file which Unity video player will fail to load.Τo which script should I add this code to play a 1440s60 quality for 360 YouTube video for example?
PlayVideoAsync
is a method on the YoutubePlayer
Monobehaviour
I cant play 360 video in 4k quality.
Can you please write a script for different qualities or maybe update with example scene?
Thanks in advance!
Thanks for the suggestion, I tagged this as a feature request (adding example scene with different qualities)
It would be even more interesting if you could add the original feature of YouTube for auto quality setting depending on the speed of the internet connection.
How can i play FHD, UHD, 4K, 8K panoramic videos?
In previous version i used this: var streamInfo = streamManifest.Video.LastOrDefault(s => s.VideoQualityLabel == "1080p60"
Now something changed. Please let me know..