YouTubeFetcher.Core
1.1.1
dotnet add package YouTubeFetcher.Core --version 1.1.1
NuGet\Install-Package YouTubeFetcher.Core -Version 1.1.1
<PackageReference Include="YouTubeFetcher.Core" Version="1.1.1" />
paket add YouTubeFetcher.Core --version 1.1.1
#r "nuget: YouTubeFetcher.Core, 1.1.1"
// Install YouTubeFetcher.Core as a Cake Addin
#addin nuget:?package=YouTubeFetcher.Core&version=1.1.1
// Install YouTubeFetcher.Core as a Cake Tool
#tool nuget:?package=YouTubeFetcher.Core&version=1.1.1
YouTubeFetcher.Core
This .NET 5.0 class library allows you to get the actual video and audio streams from YouTube.
The library also supports:
- Getting video information
- Getting playlist items
- Searching on YouTube (Videos as well as Playlists)
For the decryption logic I got help from the code of the open-source project libvideo.
Table of contents
Installation
The project can be referenced via NuGet or downloaded over GitHub.
Getting Started
After you referenced the project to your target project you can use the library as following:
With Dependency Injection
In Startup.cs
[...]
using YouTubeFetcher.Core.Extensions;
[...]
[...]
public void ConfigureServices(IServiceCollection services)
{
[...]
services.AddYouTubeService();
[...]
}
[...]
In any controller or service
[...]
private readonly IYouTubeService _youTubeService;
[...]
[...]
public TestController(IYouTubeService youTubeService)
{
[...]
_youTubeService = youTubeService;
[...]
}
[...]
With Factory
If you cannot use dependeny injection you can simply use the built in Factory YouTubeServiceFactory.
[...]
var youTubeService = new YouTubeServiceFactory().Create();
[...]
Technologies
- .NET 5.0
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net5.0
- Microsoft.Extensions.Http (>= 5.0.0)
- Microsoft.Extensions.Options (>= 5.0.0)
- Newtonsoft.Json (>= 12.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|