WPF MediaKit Documentation

repository·master·Indexed 18 days ago

https://github.com/sascha-l/wpf-mediakit

A library for building DirectShow-based media player controls in WPF. It provides specialized elements such as MediaUriElement for video playback, VideoCaptureElement for web cams, and DVDPlayerElement for DVDs. Includes a custom EVR-Presenter for DirectShow and Media Foundation environments.

Tokens
658
Snippets
1
Records
6
Agent score
64%

What's inside WPF MediaKit

  1. Overview of WPF MediaKit

    master

    WPF MediaKit is a library designed for quickly building DirectShow-based media player controls within WPF applications. It provides high-level WPF elements to replace or extend standard media capabilities.

    Key components include:

    • MediaUriElement: A replacement for the standard WPF MediaElement for video playback.
    • VideoCaptureElement: Used for handling web cam feeds.
    • DVDPlayerElement: A control for playing DVDs that supports interactive menus.
  2. Overview of EVR Presenter core classes

    master

    The EVR Presenter sample is composed of several key classes that handle rendering and timing:

    • D3DPresentEngine: Responsible for creating the Direct3D device, allocating Direct3D surfaces for rendering, and presenting those surfaces.
    • EVRCustomPresenter: The primary implementation of the custom presenter logic.
    • Scheduler: Manages the timing and scheduling of when a video sample should be displayed.
  3. Use the EVR Presenter with Media Foundation

    master

    To use the custom Enhanced Video Renderer (EVR) presenter within a Media Foundation environment, follow these steps:

    1. Build the sample project.
    2. Register the DLL using regsvr32 EvrPresenter.dll.
    3. Build and run the MFPlayer sample.
    4. In the MFPlayer application, navigate to the File menu and select Open File.
    5. In the Open File dialog, ensure the "Custom EVR Presenter" checkbox is checked.
    6. Select a video file for playback.
  4. Use the EVR Presenter with DirectShow

    master

    To use the custom Enhanced Video Renderer (EVR) presenter within a DirectShow environment, follow these steps:

    1. Build the sample project.
    2. Register the DLL using regsvr32 EvrPresenter.dll.
    3. Build and run the EVRPlayer sample.
    4. In the EVRPlayer application, navigate to the File menu and select EVR Presenter.
    5. Select a video file for playback.
  5. Install WPF MediaKit via NuGet

    master

    WPF MediaKit is available as a NuGet package. You can install it into your project using the NuGet Package Manager or the dotnet CLI.

    Compatibility Note:

    • Version 3.0+: Supports .NET 8 and .NET 9. This version has removed support for .NET Framework.
    • Version 2.3.0: Use this version if your project still requires .NET Framework compatibility.
    # Example NuGet installation command
    dotnet add package WPFMediaKit
  6. EVR-Presenter binary metadata

    master

    The EVRPresenter.dll binary contains the following version and identification metadata:

    • Product Name: EVR-Presenter
    • File Description: Custom EVR-Presenter for D3Dimaged
    • Internal Name: EVRPresenter.dll
    • Original Filename: EVRPresenter.dll
    • Product Version: 0.8.0.0
    • File Version: 0.8.0.2
    • Legal Copyright: GNU Lesser General Public License v2.1