Table of Contents

Class YouTubeVideoInfo

Namespace
VisioForge.Core.Types
Assembly
VisioForge.Core.dll

Represents detailed information about a specific YouTube video stream format.

public class YouTubeVideoInfo

Inheritance

Inherited Members

Examples

// Example of creating a YouTubeVideoInfo object:
var videoInfo = new YouTubeVideoInfo(
    "https://example.com/video_stream_url", 
    YouTubeVideoInfoFormat.Mp4,
    1080);

Console.WriteLine($"Video URI: {videoInfo.Uri}");
Console.WriteLine($"Resolution: {videoInfo.Resolution}p");
Console.WriteLine($"Format: {videoInfo.Format}");

Remarks

This class encapsulates properties such as the stream's URI, resolution, and format details, allowing applications to select and play specific quality versions of YouTube videos.

Constructors

YouTubeVideoInfo(string, YouTubeVideoInfoFormat, int)

Initializes a new instance of the VisioForge.Core.Types.YouTubeVideoInfo class.

public YouTubeVideoInfo(string uri, YouTubeVideoInfoFormat format, int resolution)

Parameters

uri string

The URI of the YouTube video stream.

format YouTubeVideoInfoFormat

The format details of the video stream.

resolution int

The vertical resolution of the video stream in pixels.

Properties

Format

Gets the format details of the YouTube video stream.

public YouTubeVideoInfoFormat Format { get; }

Property Value

YouTubeVideoInfoFormat

Resolution

Gets the vertical resolution of the video stream in pixels.

public int Resolution { get; }

Property Value

int

Uri

Gets the URI (Uniform Resource Identifier) of the YouTube video stream.

public string Uri { get; }

Property Value

string

Methods

ToString()

Returns a string that represents the current YouTube video information, typically showing format and resolution.

public override string ToString()

Returns

string

A String in the format "[Format] [Resolution]", e.g., "Mp4 1080".