YouTubeFetcher.Core 1.1.1

Suggested Alternatives

VideoLibrary

The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package YouTubeFetcher.Core --version 1.1.1
NuGet\Install-Package YouTubeFetcher.Core -Version 1.1.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="YouTubeFetcher.Core" Version="1.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add YouTubeFetcher.Core --version 1.1.1
#r "nuget: YouTubeFetcher.Core, 1.1.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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