AngryMonkey.CloudComponents.VideoPlayer
4.2.6
dotnet add package AngryMonkey.CloudComponents.VideoPlayer --version 4.2.6
NuGet\Install-Package AngryMonkey.CloudComponents.VideoPlayer -Version 4.2.6
<PackageReference Include="AngryMonkey.CloudComponents.VideoPlayer" Version="4.2.6" />
<PackageVersion Include="AngryMonkey.CloudComponents.VideoPlayer" Version="4.2.6" />
<PackageReference Include="AngryMonkey.CloudComponents.VideoPlayer" />
paket add AngryMonkey.CloudComponents.VideoPlayer --version 4.2.6
#r "nuget: AngryMonkey.CloudComponents.VideoPlayer, 4.2.6"
#:package AngryMonkey.CloudComponents.VideoPlayer@4.2.6
#addin nuget:?package=AngryMonkey.CloudComponents.VideoPlayer&version=4.2.6
#tool nuget:?package=AngryMonkey.CloudComponents.VideoPlayer&version=4.2.6
CloudComponents.VideoPlayer
A standalone Blazor component library providing a fully-featured HTML5 video player with HLS live-stream support, casting, and a rich controls UI.
Features
- MP4 & HLS playback — native video for standard files; HLS.js for adaptive live streams.
- Full controls — play/pause/stop, seek, volume, mute, playback speed, loop.
- Fullscreen — enter/exit fullscreen with keyboard shortcut and button.
- Settings menu — playback speed selector, loop toggle, video info panel.
- Casting — Chromecast support via the built-in cast bridge.
- Progress bar — interactive seek with buffered-range display.
- Volume bar — slider with mute shortcut.
- Aspect ratio — optional reserved-aspect-ratio mode.
- Events — exposes
TimeUpdate,VideoEvents, and fullVideoPlayerMetadatastate.
Installation
dotnet add package AngryMonkey.CloudComponents.VideoPlayer
Setup
- Add the script references to your
wwwroot/index.html(Blazor WASM) or_Host.cshtml(Blazor Server):
<script src="_content/CloudComponents.VideoPlayer/hls.js"></script>
- Register the namespace in
_Imports.razor:
@using CloudComponents.VideoPlayer
Usage
Basic MP4 player
@code {
private VideoPlayerMetadata Metadata = new()
{
Title = "My Video",
VideoUrl = "https://example.com/video.mp4",
EnableControls = true,
ShowProgressBar = true,
ShowSettings = true,
Volume = 1.0
};
}
<VideoPlayer Metadata="Metadata" />
HLS live stream
@code {
private VideoPlayerMetadata Metadata = new()
{
Title = "Live Channel",
VideoUrl = "https://example.com/stream.m3u8",
IsLive = true,
EnableControls = true
};
}
<VideoPlayer Metadata="Metadata" />
With child content (header overlay)
<VideoPlayer Metadata="Metadata">
<div class="my-overlay">Episode 1 — Introduction</div>
</VideoPlayer>
VideoPlayerMetadata properties
| Property | Type | Default | Description |
|---|---|---|---|
VideoUrl |
string? |
null |
URL of the video or HLS .m3u8 playlist |
Title |
string? |
null |
Display title shown in the settings panel |
IsLive |
bool |
false |
Treat the source as a live stream (hides progress bar) |
EnableControls |
bool |
true |
Show the control bar |
ShowProgressBar |
bool |
true |
Show the seek/progress bar |
ShowSettings |
bool |
true |
Show the settings menu button |
ShowStopButton |
bool |
false |
Show a stop button alongside play/pause |
Volume |
double |
1.0 |
Initial volume (0.0 – 1.0) |
Autoplay |
bool |
false |
Start playback automatically |
Loop |
bool |
false |
Loop the video when it ends |
ReserveAspectRatio |
bool |
false |
Maintain 16:9 aspect ratio when controls are hidden |
Customization
Override CSS variables for accent color and border radius:
:root {
--amc-videoplayer-accentColor: #4c9aff !important;
--amc-videoplayer-roundedCorder: 4px !important;
}
Demo
Run the CloudComponents.VideoPlayer.Demo project:
dotnet run --project CloudComponents.VideoPlayer.Demo
Angry Monkey Cloud
This project is part of the Angry Monkey Cloud open-source ecosystem. Follow the shared AI development instructions and browse the project catalog and GitHub organization.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- AngryMonkey.CloudComponents (>= 4.2.6)
- AngryMonkey.CloudComponents.Icons (>= 4.2.6)
- Microsoft.AspNetCore.Components.Web (>= 10.0.10)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on AngryMonkey.CloudComponents.VideoPlayer:
| Package | Downloads |
|---|---|
|
AngryMonkey.CDM.Components
Blazor components rendering CDM's entity forms, views, dashboards and settings screens from an entity model - the shared UI behind CDM.Server and CDM.Server.WebAssembly. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.2.6 | 55 | 8/30/2026 |
| 4.2.5 | 65 | 8/27/2026 |
| 4.2.4 | 131 | 8/15/2026 |
| 4.2.3 | 245 | 7/25/2026 |
| 4.2.2 | 130 | 7/22/2026 |
| 4.2.1 | 99 | 7/20/2026 |
| 4.2.0 | 107 | 7/12/2026 |
| 4.1.6 | 111 | 7/9/2026 |
| 4.1.5 | 109 | 7/9/2026 |
| 4.1.4 | 117 | 7/8/2026 |
| 4.1.3 | 121 | 7/7/2026 |
| 4.1.2 | 110 | 7/6/2026 |
| 4.1.1 | 105 | 7/6/2026 |
| 4.1.0 | 106 | 7/6/2026 |