Confinity Documentation
  • Latest Version
  • Latest Version
  • Getting Started

    • Introduction
    • Core Concepts
    • Create an Application
    • Glossary
  • Essentials

    • Authentication & SSO
    • Breaking Changes
    • Roslyn Source Analyzers
    • Changelog
    • ConfinityContent
    • ConfinitySelectable
    • Confinity Schedules
    • Data Seeding
    • Development guidelines [WIP]
    • Entity App
    • Entity Form
    • Entity Permissions
    • Frontend Configuration
    • Images
    • Known Issues
    • Localization
    • Migrations
    • Modules [WIP]
    • On-Site Editing
    • Settings
    • Cascade Delete
    • Replication
    • Infrastructure
  • Modules

    • Analytics Module
    • Assets Module
    • Blog Module
    • Cookie Consent Module
    • Forms Module
    • Friendly Captcha (Forms Module )
    • GeoIP Module
    • Htmx
    • Mail Module
    • Mailing Module
    • MediaPlayer Module
    • GoogleMyBusiness Module
    • OpenTelemetry Module
    • Pages Module [WIP]
    • Pattern Library Module
    • SIX Saferpay (worldline) Module
    • Products Module
    • Search Module
    • Wizard Module
  • Guides

    • Create a Custom Entity App Form Element
    • Date and Time
    • Entity Change Listener
    • File Upload / Temp File
    • HTTP security headers
    • conventions [WIP]
    • How to use Confinity with nginx
    • Notifications
    • Nullability
    • Rename Entity
    • Schedules
    • Useful snippets
    • Content Localization
  • Design Guidelines

    • Introduction
    • Page Components
    • Forms Module

MediaPlayer Module

The Confinity MediaPlayer Module allows you to simply add Videos and Audio files to your website. It comes with a Confinity App for centralized management of your video and audio files and a page component which allows you to add a video on your page.

Installation

Add the Module to your Project

You can install the MediaPlayer module from NuGet with

dotnet add package Confinity.MediaPlayer

In your Startup.cs you can now register the module with the module builder by calling the AddModule method with MediaPlayerModule. See Modules documentation for more information.

Configuration

The MediaPlayer Module can be configured using the options pattern. The corresponding options class is Confinity.MediaPlayer.MediaPlayerOptions and it will automatically try to read your configuration from your appsettings.json from the ConfinityMediaPlayer section.

Example

"ConfinityMediaPlayer": {
    "PreviewImageSizes": {
        "lg": "920px"
    }
}
Prev
Mailing Module
Next
GoogleMyBusiness Module