C# Class MediaPortal.Plugins.MovingPictures.LocalMediaManagement.VideoUtility

Utility class for video related methods
Afficher le fichier Open project: damienhaynes/moving-pictures Class Usage Examples

Méthodes publiques

Méthode Description
FindFeatureFilm ( List files ) : string

Finds the most optimal file in a collection of files. Uses the aspect ratio, resolution, audio channel count, and duration to find the file

GetMediaInfo ( string videoPath ) : MediaInfoWrapper

Returns a MediaInfoWrapper for the given video path

GetVideoFileCount ( DirectoryInfo folder ) : int

Get the number of video files (excluding sample files) that are in a folder

GetVideoFilesRecursive ( DirectoryInfo directory ) : List

Get all video files from directory and it's subdirectories.

GetVideoFormat ( string path ) : VideoFormat

Returns the videoformat that matches the given path

GetVideoPath ( string driveletter ) : string

Returns the video path (in case of a known video disc format) or just the driveletter

IsVideoDisc ( string path ) : bool

Gets a value indicating wether the supplied path validates as a video DISC format (DVD, Bluray, HDDVD or SVCD)

IsVideoFile ( FileInfo fileInfo ) : bool
IsVideoFile ( string path ) : bool

Gets a value indicating whether the supplied path validates as a video file

isSampleFile ( FileInfo file ) : bool

Check if the file is classified as a video sample file

Method Details

FindFeatureFilm() public static méthode

Finds the most optimal file in a collection of files. Uses the aspect ratio, resolution, audio channel count, and duration to find the file
public static FindFeatureFilm ( List files ) : string
files List
Résultat string

GetMediaInfo() public static méthode

Returns a MediaInfoWrapper for the given video path
public static GetMediaInfo ( string videoPath ) : MediaInfoWrapper
videoPath string path to the video
Résultat MediaInfoWrapper

GetVideoFileCount() public static méthode

Get the number of video files (excluding sample files) that are in a folder
public static GetVideoFileCount ( DirectoryInfo folder ) : int
folder System.IO.DirectoryInfo the directory to count video files in
Résultat int

GetVideoFilesRecursive() public static méthode

Get all video files from directory and it's subdirectories.
public static GetVideoFilesRecursive ( DirectoryInfo directory ) : List
directory System.IO.DirectoryInfo
Résultat List

GetVideoFormat() public static méthode

Returns the videoformat that matches the given path
public static GetVideoFormat ( string path ) : VideoFormat
path string
Résultat VideoFormat

GetVideoPath() public static méthode

Returns the video path (in case of a known video disc format) or just the driveletter
public static GetVideoPath ( string driveletter ) : string
driveletter string drive that will be checked
Résultat string

IsVideoDisc() public static méthode

Gets a value indicating wether the supplied path validates as a video DISC format (DVD, Bluray, HDDVD or SVCD)
public static IsVideoDisc ( string path ) : bool
path string filepath to validate
Résultat bool

IsVideoFile() public static méthode

public static IsVideoFile ( FileInfo fileInfo ) : bool
fileInfo System.IO.FileInfo
Résultat bool

IsVideoFile() public static méthode

Gets a value indicating whether the supplied path validates as a video file
public static IsVideoFile ( string path ) : bool
path string filepath to validate
Résultat bool

isSampleFile() public static méthode

Check if the file is classified as a video sample file
public static isSampleFile ( FileInfo file ) : bool
file System.IO.FileInfo file to check
Résultat bool