Var streamInfo = streamManifest.GetAudioOnlyStreams().GetWithHighestBitrate() Var streamInfo = streamManifest.GetMuxedStreams().GetWithHighestVideoQuality() Once you get the manifest, you can filter through the streams and select the ones you're interested in: using YoutubeExplode Var streamManifest = await ("u_yIGGhubZs") You can request the manifest that lists all available streams for a particular video by calling (.): using YoutubeExplode Video-only streams - contain only video.Audio-only streams - contain only audio.Muxed streams - contain both video and audio.Var duration = video.Duration // 00:07:20Įvery YouTube video has a number of streams available, differing in containers, video quality, bitrate, framerate, and other properties.Īdditionally, depending on the content of the stream, the streams are further divided into 3 categories: Var title = video.Title // "Collections - Blender 2.80 Fundamentals" To retrieve metadata associated with a YouTube video, call Videos.GetAsync(.): using YoutubeExplode YoutubeExplode exposes its functionality through a single entry point - the YoutubeClient class.Ĭreate an instance of this class and use the provided operations on Videos, Playlists, Channels, and Search properties to send requests. □ NuGet: dotnet add package YoutubeExplode.Converter ( FFmpeg integration).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |