C# 클래스 MediaPortal.Plugins.MovingPictures.LocalMediaManagement.VideoUtility

Utility class for video related methods
파일 보기 프로젝트 열기: damienhaynes/moving-pictures 1 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

FindFeatureFilm() 공개 정적인 메소드

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
리턴 string

GetMediaInfo() 공개 정적인 메소드

Returns a MediaInfoWrapper for the given video path
public static GetMediaInfo ( string videoPath ) : MediaInfoWrapper
videoPath string path to the video
리턴 MediaInfoWrapper

GetVideoFileCount() 공개 정적인 메소드

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
리턴 int

GetVideoFilesRecursive() 공개 정적인 메소드

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

GetVideoFormat() 공개 정적인 메소드

Returns the videoformat that matches the given path
public static GetVideoFormat ( string path ) : VideoFormat
path string
리턴 VideoFormat

GetVideoPath() 공개 정적인 메소드

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
리턴 string

IsVideoDisc() 공개 정적인 메소드

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
리턴 bool

IsVideoFile() 공개 정적인 메소드

public static IsVideoFile ( FileInfo fileInfo ) : bool
fileInfo System.IO.FileInfo
리턴 bool

IsVideoFile() 공개 정적인 메소드

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

isSampleFile() 공개 정적인 메소드

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