C# Class Business.MediaInfoReader

Provides access to media information that is only available by opening up the file.
Inheritance: IDisposable
Afficher le fichier Open project: mysteryx93/NaturalGroundingPlayer Class Usage Examples

Méthodes publiques

Méthode Description
Dispose ( ) : void

Releases resources allocated to Windows Media Player COM object.

HasDimensions ( Media item ) : bool
HasMissingInfo ( Media item ) : bool
LoadInfo ( string fileName ) : void

Loads media information of specified file.

LoadInfoAsync ( Media item ) : Task

Loads the Length, Width and Height of specified media file.

LoadInfoAsync ( string fileName ) : Task

Loads media information of specified file.

MediaInfoReader ( ) : System

Initializes a new instance of the MediaInfoReader class.

Private Methods

Méthode Description
GetLength ( StreamKind stream ) : short?
ReadMediaFile ( string fileName ) : MediaInfo

Method Details

Dispose() public méthode

Releases resources allocated to Windows Media Player COM object.
public Dispose ( ) : void
Résultat void

HasDimensions() public static méthode

public static HasDimensions ( Media item ) : bool
item Media
Résultat bool

HasMissingInfo() public static méthode

public static HasMissingInfo ( Media item ) : bool
item Media
Résultat bool

LoadInfo() public méthode

Loads media information of specified file.
public LoadInfo ( string fileName ) : void
fileName string The full path of the file to read.
Résultat void

LoadInfoAsync() public méthode

Loads the Length, Width and Height of specified media file.
public LoadInfoAsync ( Media item ) : Task
item Media The media file to read.
Résultat Task

LoadInfoAsync() public méthode

Loads media information of specified file.
public LoadInfoAsync ( string fileName ) : Task
fileName string The full path of the file to read.
Résultat Task

MediaInfoReader() public méthode

Initializes a new instance of the MediaInfoReader class.
public MediaInfoReader ( ) : System
Résultat System