Interface IGetVideoStreamInfo
- Namespace
- VisioForge.Core.Types.X
- Assembly
- VisioForge.Core.dll
Defines an interface for components that can provide detailed information about a video stream.
public interface IGetVideoStreamInfoExamples
// Assume 'videoSource' is an instance of a class implementing IGetVideoStreamInfo.
IGetVideoStreamInfo videoInfoProvider = GetVideoSourceInstance();
VideoStreamInfo streamInfo = videoInfoProvider.GetVideoStreamInfo();
if (streamInfo != null)
{
Console.WriteLine($"Video Stream Codec: {streamInfo.Codec}");
Console.WriteLine($"Video Resolution: {streamInfo.Width}x{streamInfo.Height}");
Console.WriteLine($"Video Frame Rate: {streamInfo.FrameRate.Value:F2} FPS");
}
Remarks
This interface is typically implemented by video sources or processing elements that can expose the properties of the video data they handle. It allows other parts of the system to query for video stream characteristics like resolution, frame rate, and codec.
Methods
GetVideoStreamInfo()
Retrieves detailed information about the video stream.
VideoStreamInfo GetVideoStreamInfo()Returns
- VideoStreamInfo
-
A VisioForge.Core.Types.MediaInfo.VideoStreamInfo object containing the video stream's properties.