
Security News
libxml2 Maintainer Ends Embargoed Vulnerability Reports, Citing Unsustainable Burden
Libxml2’s solo maintainer drops embargoed security fixes, highlighting the burden on unpaid volunteers who keep critical open source software secure.
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.
Security News
Libxml2’s solo maintainer drops embargoed security fixes, highlighting the burden on unpaid volunteers who keep critical open source software secure.
Research
Security News
Socket investigates hidden protestware in npm packages that blocks user interaction and plays the Ukrainian anthem for Russian-language visitors.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.