Enum FFMPEGSourceMediaType
- Namespace
- VisioForge.Core.Types.Events
- Assembly
- VisioForge.Core.dll
Defines the types of media streams that can be found in an FFmpeg source. This enumeration helps categorize different tracks within a multimedia file or stream.
public enum FFMPEGSourceMediaTypeFields
Unknown = -1-
The media stream type is unknown or not specified.
Video = 0-
The stream contains video data.
Audio = 1-
The stream contains audio data.
Data = 2-
The stream contains generic data, often used for private data or custom formats.
Subtitle = 3-
The stream contains subtitle data.
Attachment = 4-
The stream contains attachment data, such as fonts or images embedded in the media file.
NB = 5-
Represents the number of media types. Not a valid media type itself.
Examples
// Example of checking the media type of a stream.
// FFMPEGSourceMediaType streamType = GetFFMPEGStreamType();
// switch (streamType)
// {
// case FFMPEGSourceMediaType.Video:
// Console.WriteLine("This is a video stream.");
// break;
// case FFMPEGSourceMediaType.Audio:
// Console.WriteLine("This is an audio stream.");
// break;
// case FFMPEGSourceMediaType.Subtitle:
// Console.WriteLine("This is a subtitle stream.");
// break;
// default:
// Console.WriteLine($"Unknown or unsupported media type: {streamType}");
// break;
// }
Remarks
These media types are commonly encountered when parsing or processing multimedia containers using FFmpeg-based components.