Sportronics.VideoEnums 3.2.0

dotnet add package Sportronics.VideoEnums --version 3.2.0
                    
NuGet\Install-Package Sportronics.VideoEnums -Version 3.2.0
                    
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="Sportronics.VideoEnums" Version="3.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Sportronics.VideoEnums" Version="3.2.0" />
                    
Directory.Packages.props
<PackageReference Include="Sportronics.VideoEnums" />
                    
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 Sportronics.VideoEnums --version 3.2.0
                    
#r "nuget: Sportronics.VideoEnums, 3.2.0"
                    
#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.
#:package Sportronics.VideoEnums@3.2.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Sportronics.VideoEnums&version=3.2.0
                    
Install as a Cake Addin
#tool nuget:?package=Sportronics.VideoEnums&version=3.2.0
                    
Install as a Cake Tool

Sportronics.VideoEnums

Cross-platform video timing enums and utilities for Windows and Android applications.

Features

Common (Windows & Android)

  • TimeFromMode enum: Define video timing reference points

    • FromVideoStart: From start of video capture
    • FromGunSound: From gun sound detection
    • FromGunFlash: From observed flash of gun on video
    • ManuallySelect: Manually selected start time
    • WallClockSelect: Wall clock selected time
  • VideoDetectMode enum: Video detection methods

    • FromFlash: Detect flash in video
    • FromFrameChange: Detect motion in video
    • FromMotionDetector: Detect frame change in video
  • VideoInfo class: Video metadata handling with JSON serialization

Android-Specific Features

  • MetadataManager class: Video file metadata operations using TagLib
    • WriteJsonComment(): Write JSON metadata to video file comments
    • ReadJsonComment(): Read JSON metadata from video file comments

Recent Changes

  • V3.1.1
    • In List<VideoListItem> QueryRecentVideos() in VideoMetadataService, getting List of "valid" videos (i.e. have meta-info).
	bool hasMeta = VideoInfo.Check4MetaInfo(videoFilePath);
  • Alternative MinimalTest(): Only checks for Filename property in json string

  • Not much difference in speed, but Check4MetaInfo() does a more complete check of required properties.

  • V3.1.0 Added:

    • Added static bool MinimalTest(string filepath) method to VideoInfo for quick check of json string to see if has Filename property, at least.
    • Added (Android only) bool Check4MetaInfo(string filepath)
      • Checks for presence of meta-info json string as a Comment in the Video file
      • Deserializes the json string and calls HasMetaInfo() VideoInfo method.
      • Therefore verifies that the json string (meta-info) has the required VideoInfo properties for the TimeFrom mode.
    • Added bool HasMetaInfo() method of VideoInfo that:
      • Checks that has the required VideoInfo properties for the TimeFrom mode.
    • Added static bool HasMetaInfo(string)
      • Deserializes the json string and calls HasMetaInfo() VideoInfo method.

Installation

<PackageReference Include="Sportronics.VideoEnums" Version="3.1.1" />

Usage

Basic Enums (Windows & Android)

using PhotoTimingDjaus.Enums;

var timeMode = TimeFromMode.FromVideoStart;
var detectMode = VideoDetectMode.FromFlash;

var videoInfo = new VideoInfo();
videoInfo.TimeFrom = timeMode;
videoInfo.DetectMode = detectMode;

Android Metadata Operations

#if ANDROID
using MetadataManager;

// Write metadata to video file
bool success = MetadataManager.WriteJsonComment(filePath, jsonData);

// Read metadata from video file
string metadata = MetadataManager.ReadJsonComment(filePath);
#endif

Platform Support

  • Windows: .NET 9.0-windows
  • Android: .NET 9.0-android (API 21+)

Repository

Source code: https://github.com/djaus2/TransferVideoOverTcp

License

MIT License

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

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Sportronics.VideoEnums:

Package Downloads
Sportronics.SendVideoOverTcpLib

A MAUI library for transferring video over TCP from phone to Windows WPF complementary app (see repository project GetVideoWPFLibSample).

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.2.0 59 10/6/2025
3.1.2 61 10/6/2025
3.1.1 123 10/3/2025
3.1.0 127 10/3/2025
3.0.3 140 10/1/2025
3.0.2 135 10/1/2025
3.0.1 136 10/1/2025
3.0.0 143 10/1/2025
2.0.2 151 9/9/2025

Version 3.2.0: Namespace changed to: Sportronics.VideoEnums