AngryMonkey.CloudComponents.VideoPlayer
4.2.3
dotnet add package AngryMonkey.CloudComponents.VideoPlayer --version 4.2.3
NuGet\Install-Package AngryMonkey.CloudComponents.VideoPlayer -Version 4.2.3
<PackageReference Include="AngryMonkey.CloudComponents.VideoPlayer" Version="4.2.3" />
<PackageVersion Include="AngryMonkey.CloudComponents.VideoPlayer" Version="4.2.3" />
<PackageReference Include="AngryMonkey.CloudComponents.VideoPlayer" />
paket add AngryMonkey.CloudComponents.VideoPlayer --version 4.2.3
#r "nuget: AngryMonkey.CloudComponents.VideoPlayer, 4.2.3"
#:package AngryMonkey.CloudComponents.VideoPlayer@4.2.3
#addin nuget:?package=AngryMonkey.CloudComponents.VideoPlayer&version=4.2.3
#tool nuget:?package=AngryMonkey.CloudComponents.VideoPlayer&version=4.2.3
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.3)
- AngryMonkey.CloudComponents.Icons (>= 4.2.3)
- 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
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.