Sportronics.VideoEnums
3.2.0
dotnet add package Sportronics.VideoEnums --version 3.2.0
NuGet\Install-Package Sportronics.VideoEnums -Version 3.2.0
<PackageReference Include="Sportronics.VideoEnums" Version="3.2.0" />
<PackageVersion Include="Sportronics.VideoEnums" Version="3.2.0" />
<PackageReference Include="Sportronics.VideoEnums" />
paket add Sportronics.VideoEnums --version 3.2.0
#r "nuget: Sportronics.VideoEnums, 3.2.0"
#:package Sportronics.VideoEnums@3.2.0
#addin nuget:?package=Sportronics.VideoEnums&version=3.2.0
#tool nuget:?package=Sportronics.VideoEnums&version=3.2.0
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 captureFromGunSound
: From gun sound detectionFromGunFlash
: From observed flash of gun on videoManuallySelect
: Manually selected start timeWallClockSelect
: Wall clock selected time
VideoDetectMode enum: Video detection methods
FromFlash
: Detect flash in videoFromFrameChange
: Detect motion in videoFromMotionDetector
: 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 commentsReadJsonComment()
: 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.
- Added
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 | Versions 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. |
-
net9.0-android35.0
- Microsoft.Maui.Controls (>= 8.0.91)
- Microsoft.Maui.Essentials (>= 8.0.91)
- TagLibSharp (>= 2.3.0)
-
net9.0-windows7.0
- No dependencies.
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 3.2.0: Namespace changed to: Sportronics.VideoEnums