C# Class Business.MediaInfoReader

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

Public Methods

Method 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

Method Description
GetLength ( StreamKind stream ) : short?
ReadMediaFile ( string fileName ) : MediaInfo

Method Details

Dispose() public method

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

HasDimensions() public static method

public static HasDimensions ( Media item ) : bool
item Media
return bool

HasMissingInfo() public static method

public static HasMissingInfo ( Media item ) : bool
item Media
return bool

LoadInfo() public method

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

LoadInfoAsync() public method

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

LoadInfoAsync() public method

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

MediaInfoReader() public method

Initializes a new instance of the MediaInfoReader class.
public MediaInfoReader ( ) : System
return System