Mtf.Controls.Video 1.0.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package Mtf.Controls.Video --version 1.0.3
                    
NuGet\Install-Package Mtf.Controls.Video -Version 1.0.3
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Mtf.Controls.Video" Version="1.0.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Mtf.Controls.Video" Version="1.0.3" />
                    
Directory.Packages.props
<PackageReference Include="Mtf.Controls.Video" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Mtf.Controls.Video --version 1.0.3
                    
#r "nuget: Mtf.Controls.Video, 1.0.3"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=Mtf.Controls.Video&version=1.0.3
                    
Install Mtf.Controls.Video as a Cake Addin
#tool nuget:?package=Mtf.Controls.Video&version=1.0.3
                    
Install Mtf.Controls.Video as a Cake Tool

MortoGraphy Video Streaming Control

Overview

MortoGraphy is a custom video streaming control built using Windows Forms. It allows embedding and displaying MJPEG or JPEG video streams within an application using the MortoGraphyWindow component.

Features

  • Supports MJPEG and JPEG video streams.
  • Provides overlay text support with configurable font, color, and position.
  • Implements a secure authentication mechanism for video streams.
  • Offers a Start and Stop method to manage streaming.
  • Handles thread-safe image updates to avoid UI thread issues.

Components

MortoGraphyWindow

A PictureBox-derived control that provides an interface for displaying video streams. It includes properties for configuring authentication, overlay text, and stream type.

Properties:
  • StreamType (StreamType): Defines the type of stream (MJPEG/JPEG).
  • Username (string): Username for authentication.
  • Password (string): Password for authentication.
  • OverlayText (string): Text displayed over the video feed.
  • OverlayFont (Font): Font used for overlay text.
  • OverlayBrush (Brush): Color of the overlay text.
  • OverlayLocation (Point): Position of the overlay text.
Methods:
  • Start(string resource): Starts the video stream from the specified URI.
  • Stop(): Stops the video stream.

MortoGraphy

Handles video stream retrieval and processing. This class fetches frames and updates the MortoGraphyWindow control.

Events:
  • FrameArrived: Triggered when a new frame is available.
Methods:
  • Start(string url): Initiates video streaming from the given URL.
  • Stop(): Stops the video stream.

Usage

  1. Add MortoGraphyWindow to your form.
  2. Set the necessary properties (StreamType, Username, Password, etc.).
  3. Call Start("http://your-stream-url") to begin streaming.
  4. Call Stop() when finished.
var videoWindow = new MortoGraphyWindow
{
    Username = "admin",
    Password = "password",
    StreamType = StreamType.Mjpeg,
    OverlayText = "Live Stream",
    OverlayFont = new Font("Arial", 16, FontStyle.Bold),
    OverlayBrush = Brushes.Red,
    OverlayLocation = new Point(20, 20)
};
videoWindow.Start("http://camera-stream-url");

Dependencies

  • System.Drawing
  • System.Net.Http
  • System.Windows.Forms

License

This project is licensed under the MIT License.

Product Compatible and additional computed target framework versions.
.NET net8.0-windows7.0 is compatible.  net9.0-windows was computed.  net9.0-windows7.0 is compatible. 
.NET Framework net481 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.50 76 3 days ago
1.0.47 115 3 days ago
1.0.46 114 3 days ago
1.0.42 143 5 days ago
1.0.27 96 8 days ago
1.0.22 143 11 days ago
1.0.18 139 12 days ago
1.0.17 145 12 days ago
1.0.14 126 18 days ago
1.0.13 125 18 days ago
1.0.8 158 a month ago
1.0.5 161 a month ago
1.0.3 149 a month ago
1.0.1 121 a month ago
1.0.0 125 a month ago