Skip to content

VideoFileEntry Class

The VideoFileEntry class represents a video file in the catalog.

Overview

This class is returned by IVideoCatalogService.GetVideoFileEntry() and contains all metadata for a video.

Key Properties

Property Type Description
ID long Unique identifier for the video
Title string Display title of the video
FilePath string Full path to the video file
Duration TimeSpan Length of the video
Description string Video description
Rating int User rating (0-5)
DateAdded DateTime When the video was added to catalog

Example

var service = scripting.GetVideoCatalogService();
VideoFileEntry video = service.GetVideoFileEntry(videoId);

scripting.GetConsole().WriteLine($"Title: {video.Title}");
scripting.GetConsole().WriteLine($"Path: {video.FilePath}");
scripting.GetConsole().WriteLine($"Duration: {video.Duration}");

See Also