Class YouTubeVideoInfo
- Namespace
- VisioForge.Core.Types
- Assembly
- VisioForge.Core.dll
Represents detailed information about a specific YouTube video stream format.
public class YouTubeVideoInfoInheritance
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
uristring-
The URI of the YouTube video stream.
formatYouTubeVideoInfoFormat-
The format details of the video stream.
resolutionint-
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
Resolution
Gets the vertical resolution of the video stream in pixels.
public int Resolution { get; }Property Value
Uri
Gets the URI (Uniform Resource Identifier) of the YouTube video stream.
public string Uri { get; }Property Value
Methods
ToString()
Returns a string that represents the current YouTube video information, typically showing format and resolution.
public override string ToString()