Class MediaInfo
Inheritance
System.Object
MediaInfo
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Xabe.FFmpeg
Assembly: Xabe.FFmpeg.dll
Syntax
public class MediaInfo : IMediaInfo
Properties
AudioStreams
Declaration
public IEnumerable<IAudioStream> AudioStreams { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IAudioStream> |
Duration
Declaration
public TimeSpan Duration { get; }
Property Value
Type | Description |
---|---|
System.TimeSpan |
Path
Declaration
public string Path { get; }
Property Value
Type | Description |
---|---|
System.String |
Size
Declaration
public long Size { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
Streams
Declaration
public IEnumerable<IStream> Streams { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IStream> |
SubtitleStreams
Declaration
public IEnumerable<ISubtitleStream> SubtitleStreams { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<ISubtitleStream> |
VideoStreams
Declaration
public IEnumerable<IVideoStream> VideoStreams { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IVideoStream> |
Methods
Get(FileInfo)
Get MediaInfo from file
Declaration
public static Task<IMediaInfo> Get(FileInfo fileInfo)
Parameters
Type | Name | Description |
---|---|---|
System.IO.FileInfo | fileInfo | FileInfo |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<IMediaInfo> |
Get(String)
Get MediaInfo from file
Declaration
public static Task<IMediaInfo> Get(string filePath)
Parameters
Type | Name | Description |
---|---|---|
System.String | filePath | FullPath to file |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<IMediaInfo> |
Get(String, CancellationToken)
Get MediaInfo from file
Declaration
public static Task<IMediaInfo> Get(string filePath, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
System.String | filePath | FullPath to file |
System.Threading.CancellationToken | cancellationToken | Cancellation token |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<IMediaInfo> |