Repository navigation
media sdk overview
The Media SDK (Genetec.Sdk.Media.dll) is the .NET assembly that gives a Security Center integration direct access to video and audio: live and recorded playback, decoded frames, archived export, file inspection and conversion, recorded-stream reading, overlays, PTZ control, audio output, camera-blocking checks, and analog monitor activity.
The Media SDK builds on the Platform SDK. Workflows that access Security Center resources, such as live or recorded playback, export, PTZ, overlays, or blocking data, start with a Platform SDK Engine that is logged on to a Directory as a Security Center user with the privileges needed for the operation. Local-file workflows, such as inspecting a G64, G64x, or MP4 file with MediaFile, converting a G64 or G64x file, or encrypting one with FileCryptingManager, can run without a logged-on Engine. Removing Security Center encryption during ASF or MP4 conversion requires the converter's Initialize overload that accepts an Engine logged on as a user with the ConvertExportedFiles and RemoveEncryption privileges. The Media SDK itself does not authenticate or manage entities.
Use the Media SDK when an integration needs video or audio that the other SDKs do not cover:
- A WPF window that plays live or archived video, with snapshots, transport controls, and synchronization across several views.
- A processing pipeline that consumes decoded video frames or synchronized PCM audio for analytics, computer vision, or quality inspection.
- An export workflow that produces a G64 or G64x package from Security Center recordings.
- A local-file workflow that inspects an exported file, converts it to ASF or MP4, password-protects a G64x package, or encrypts and decrypts media files.
- A reader-style workflow that queries where recordings exist or reads raw video, audio, or metadata frames as data.
- A PTZ workflow, an audio-output workflow, or an integration that listens to analog monitor events.
Choose an SDK for these workflows:
| If you need to... | Use |
|---|---|
| Manage entities, alarms, events, reports, schedules, roles, or privileges | Platform SDK |
| Build a module that runs inside Security Desk or Config Tool | Workspace SDK |
| Build a server-side role, unit manager, or server extension | Plugin SDK |
| Play video in a browser | Genetec Web Player |
| Configure a camera or read camera properties | Platform SDK |
The Media SDK is organized as small, focused components. Each one wraps a specific media capability.
| Component | What it does |
|---|---|
MediaPlayer |
WPF control that displays live, recorded, or local video. |
VideoSourceFilter, AudioVideoSourceFilter
|
Headless playback that delivers decoded video frames (and optionally PCM audio) to your code. |
MediaExporter |
Creates G64 or G64x export packages from Security Center recordings. |
MediaFile |
Inspects an existing G64, G64x, or MP4 file: which sources, which time ranges, what content. |
G64ToAsfConverter, G64ToMp4Converter, G64xPasswordProtectionConverter
|
Convert exported G64/G64x to other formats or apply password protection. |
FileCryptingManager |
Encrypts and decrypts local media files. |
PlaybackSequenceQuerier, PlaybackStreamReader
|
Find where recordings exist and read raw recorded video, audio, or metadata frames. |
OverlayFactory, Overlay, Layer
|
Draw application-owned graphics over camera video. |
PtzCoordinatesManager, AggregatePtzCoordinatesManager
|
Track PTZ position and send PTZ commands for one or several cameras. |
AudioTransmitter, AudioRecorder
|
Send raw PCM audio (AudioTransmitter) or workstation microphone audio (AudioRecorder) to a camera audio output. |
LiveBlockingConfiguration, MediaBlockingConfiguration
|
Check whether live video is currently blocked, or evaluate blocking rules at a specific time and security level. |
AnalogMonitorController |
Observe analog monitor stream activity and blocked-camera requests. |
- Getting started with the Media SDK: Setup, order of operations, and shared rules across Media SDK components.
- About MediaPlayer: MediaPlayer WPF control for live, recorded, and local-file playback.
- About MediaExporter: Producing G64 and G64x export packages from Security Center recordings.
- Overview
- Connecting to Security Center
- SDK certificates
- Referencing SDK assemblies
- ASP.NET hosting
- SDK compatibility
- Migrating to modern .NET
- Entities
- Entity cache
- Entity loading, cache, and query options
- Detecting entity changes
- Entity change event reference
- Transactions
- Security Center events
- Actions
- Security Desk
- Custom events
- Event-to-actions
- Managing macros
- ReportManager
- ReportManager query reference
- Access control raw events
- DownloadAllRelatedData and StrictResults
- Privileges
- Partitions
- Entity write restrictions
- About custom fields
- About video
- About cameras
- Enrolling a video unit
- Ingesting third-party video
- Archiver and auxiliary archiver roles
- Archive transfer
- About access control
- About cardholders and credentials
- About doors, areas, elevators, and access points
- About access rules and schedules
- About access control units and interface modules
- Enrolling an access control unit
- Door templates
- Visitors
- Mobile credentials
- About threat levels
- About alarms
- About incidents
- Maps
- Logging
- Overview
- Localization
- Certificates
- Lifecycle
- Threading
- State management
- Configuration
- Restricted configuration
- Events
- Queries
- Request manager
- Database
- Entity ownership
- Engine extensions
- Entity mappings
- Server management
- Custom privileges
- Custom entity types
- Resolving non-SDK assemblies
- Deploying plugins
- Modern .NET support
- Overview
- Localization
- Certificates
- Creating modules
- Tasks
- Pages
- Components
- Tile extensions
- Services
- Contextual actions
- Custom actions
- Options extensions
- Configuration pages
- Monitors
- Shared components
- Commands
- Extending events
- Map extensions
- Timeline providers
- Image extractors
- Credential encoders
- Credential readers
- Cardholder fields extractors
- Badge printers
- Content builders
- Dashboard widgets
- Incidents
- Logon providers
- Pinnable content builders
- Custom report pages
- Overview
- Getting started
- Media file formats
- MediaPlayer
- VideoSourceFilter
- MediaExporter
- MediaFile
- G64 converters
- FileCryptingManager
- PlaybackSequenceQuerier
- PlaybackStreamReader
- OverlayFactory
- PtzCoordinatesManager
- AudioTransmitter
- AudioRecorder
- AnalogMonitorController
- Camera blocking
- Overview
- Getting started
- Referencing entities
- Entity operations
- About access control in the Web SDK
- About video in the Web SDK
- Users and user groups
- Partitions
- Custom fields
- Custom card formats
- Actions
- Events and alarms
- Incidents
- Reports
- Tasks
- Macros
- Custom entity types
- System endpoints
- Performance guide
- Reference
- Endpoints
- Constants
- Enumerations
- Under the hood
- Troubleshooting