Repository navigation
media sdk getting started
The Media SDK (Genetec.Sdk.Media.dll) adds video and audio to a .NET application: live and recorded playback, decoded frames, archived export, file inspection and conversion, PTZ control, audio output, and camera-blocking checks. It is an extension of the Platform SDK. A Media SDK workflow that works with Security Center video and audio runs on a Platform SDK Engine that is logged on to a Directory and uses the entities the Platform SDK resolves. The Platform SDK provides the connection, authentication, and entities; the Media SDK uses them to deliver video and audio.
- The Security Center SDK installed on the development machine and on every machine that runs the application. Reference the assemblies in place from the installed SDK; the application loads them from that installation at runtime. For the reference pattern, see Referencing SDK assemblies.
- Two assembly references, both from
$(GSC_SDK)with Copy Local disabled (<Private>False</Private>):Genetec.Sdk.dll(the Platform SDK) andGenetec.Sdk.Media.dll(the Media SDK). - An application that targets .NET Framework. The Media SDK is supported only for .NET Framework applications. Target .NET Framework and reference the Media SDK through
GSC_SDK(the .NET Framework SDK path), notGSC_SDK_CORE(the .NET 8 path). The DAP Media SDK samples targetnet481. - An SDK certificate and a Security Center license that includes Media SDK access.
- The Security Center privileges for the operation you run, such as live video, playback, export, PTZ control, or audio transmission. Media SDK operations run as the logged-on user, so grant that user the privileges each operation needs.
Most Media SDK components are online: they reach Security Center through a Platform SDK Engine that is logged on to a Directory as a user with the required privileges. Create and log on the Engine with the Platform SDK, then supply it to the component. For the connection, see Getting started with the Platform SDK.
A few components are offline and work on local files alone: MediaFile, the G64 and G64x converters, and FileCryptingManager.
MediaPlayer is a WPF control that derives from System.Windows.Controls.UserControl. Host it in a window to render video with the native Security Center codecs.
The headless components, such as VideoSourceFilter, AudioVideoSourceFilter, MediaExporter, PlaybackStreamReader, and the file converters, deliver media to your code and hold native media resources. They implement IDisposable, so dispose each one when its work is done, for example with a using statement.
- About the Media SDK: The full component list and when to use each one.
-
Getting started with the Platform SDK: Create and log on the
Enginethat the Media SDK uses. - About MediaPlayer: Display live, recorded, and local-file video in a WPF application.
- 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