
Product
Secure Your AI-Generated Code with Socket MCP
Socket MCP brings real-time security checks to AI-generated code, helping developers catch risky dependencies before they enter the codebase.
A suitable and customisable video player for Blazor WebAssembly.Based on plyr.io, With capabilities such as Fullscreen, Shortcuts, Picture-in-Picture, Playsinline,Speed controls,Multiple captions,Responsive and ...
Find the package through NuGet Package Manager or install it with following command.
Install-Package BlazorVideoPlayer -Version x.x
dotnet add package BlazorVideoPlayer
x.x is version of package for use last version see https://www.nuget.org/packages/BlazorVideoPlayer
After the package is added, you need to add the following in your _Imports.razor
@using BlazorVideoPlayer
Add the following in Program.cs
builder.Services.AddVideoPlayerServices();
Be sure to use a unique ID
<div style="width:700px;">
<Player id="advanced"
CurrentTimeControl="true"
DownloadControl="true"
DurationControl="true"
FastForwardControl="true"
FullscreenControl="true"
PIPControl="true"
VolumeControl="true"
MuteControl="true"
SettingsControl="true"
RewindControl="true"
RestartControl="true"
ProgressControl="true"
PlayControl="true"
CaptionsControl="true"
AirplayControl="true"
PlayLargeControl="true"
Captions="true"
Loop="true"
Quality="true"
Speed="true"
Poster="poster.png"
Sources="@sources"
OnEndedVideo="OnEndedVideo"
OnPlayVideo="OnPlayVideo"
OnVideoTimeUpdate="@((e) => OnVideoTimeUpdate(e.currentTime,e.duration))" />
</div>
@code{
private List<Source> sources = new()
{
new()
{
Src = "/path/to/video.mp4",
Type = "video/mp4"
}
};
private void OnEndedVideo()
{
Console.WriteLine("End of play");
}
private void OnPlayVideo()
{
Console.WriteLine("Start playing");
}
private void OnVideoTimeUpdate(float currentTime, float duration)
{
Console.WriteLine("Current Time: " + currentTime);
Console.WriteLine("Duration: " + duration);
}
}
FAQs
A suitable video player for Blazor WebAssembly. plyr.io
We found that blazorvideoplayer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket MCP brings real-time security checks to AI-generated code, helping developers catch risky dependencies before they enter the codebase.
Security News
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
Research
Security News
Socket’s Threat Research Team has uncovered 60 npm packages using post-install scripts to silently exfiltrate hostnames, IP addresses, DNS servers, and user directories to a Discord-controlled endpoint.