BootstrapBlazor.VideoPlayer 8.0.6

dotnet add package BootstrapBlazor.VideoPlayer --version 8.0.6
NuGet\Install-Package BootstrapBlazor.VideoPlayer -Version 8.0.6
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="BootstrapBlazor.VideoPlayer" Version="8.0.6" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add BootstrapBlazor.VideoPlayer --version 8.0.6
#r "nuget: BootstrapBlazor.VideoPlayer, 8.0.6"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install BootstrapBlazor.VideoPlayer as a Cake Addin
#addin nuget:?package=BootstrapBlazor.VideoPlayer&version=8.0.6

// Install BootstrapBlazor.VideoPlayer as a Cake Tool
#tool nuget:?package=BootstrapBlazor.VideoPlayer&version=8.0.6

Blazor VideoPlayer 视频播放器 组件

示例:

https://www.blazor.zone/videoPlayers

https://blazor.app1.es/videoPlayers

使用方法:

1.nuget包

BootstrapBlazor.VideoPlayer

2._Imports.razor 文件 或者页面添加 添加组件库引用

@using BootstrapBlazor.Components

3.razor页面

<VideoPlayer MineType="application/x-mpegURL" Url="https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8" />

<VideoPlayer MineType="video/mp4" Url="//vjs.zencdn.net/v/oceans.mp4" />

<VideoPlayer MineType="video/mp4" Url="//vjs.zencdn.net/v/oceans.mp4" Width="400" Height="300" Autoplay="false" Poster="//vjs.zencdn.net/v/oceans.png" />

4.参数说明

类型 参数 说明 默认值
string Url 资源地址 null
string MineType 资源类型,video/mp4, application/x-mpegURL, video/ogg .. 更多参考 EnumVideoType application/x-mpegURL
int Width 宽度 300
int Height 高度 200
bool Controls 显示控制条 true
bool Autoplay 自动播放 true
string Poster 设置封面资源,相对或者绝对路径
string Language 界面语言,默认 获取当前文化, 例如 zh-CN / en-US,如果语言包不存在,回退到 zh-CN 当前文化
VideoPlayerOption Option 播放器选项, 不为空则优先使用播放器选项,否则使用参数构建 null
async Task Reload(string? url, string? type) 切换播放资源
async Task SetPoster(string? poster) 设置封面
Func<string, Task>? OnError 错误回调
更新历史

v 8.0.5

  • 优化组件

v 8.0.1

  • 修复播放器某些特殊浏览器无法播放的问题, 升级内置播放器版本到 8.6.1
  • 添加 VideoJsPath : 自定义video.js路径,默认为null,使用内置video.js
  • 添加 LanguagePath : 自定义语言包路径,默认为null,使用内置语言包

v7.0.2

  • 添加 Language : 界面语言,默认 获取当前文化, 例如 zh-CN / en-US,如果语言包不存在,回退到 zh-CN

v7.0.3

  • 如果语言代码与子代码(例如en-us)不匹配,则使用主代码(例如en)的匹配项(如果可用), 如果语言包不存在,回退到 zh-CN

Blazor 组件

条码扫描 ZXingBlazor nuget stats

图片浏览器 Viewer

手写签名 SignaturePad

定位/持续定位 Geolocation

屏幕键盘 OnScreenKeyboard

百度地图 BaiduMap

谷歌地图 GoogleMap

蓝牙和打印 Bluetooth

PDF阅读器 PdfReader

文件系统访问 FileSystem

光学字符识别 OCR

电池信息/网络信息 WebAPI

文件预览 FileViewer

视频播放器 VideoPlayer

图像裁剪 ImageCropper

视频播放器 BarcodeGenerator

AlexChow

今日头条 | 博客园 | 知乎 | Gitee | GitHub

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on BootstrapBlazor.VideoPlayer:

Package Downloads
BlazorShared

BlazorMaui , 整合Blazor,BootstrapBlazor UI组件库,Maui的共享跨平台工程示例共享库

BootstrapBlazor.Densen.All

Blazor 组件懒人包

BootstrapBlazor.Shared

Package Description

GitHub repositories (2)

Showing the top 2 popular GitHub repositories that depend on BootstrapBlazor.VideoPlayer:

Repository Stars
dotnetcore/BootstrapBlazor
A set of enterprise-class UI components based on Bootstrap and Blazor
densen2014/BlazorMaui
用 c # 和 Razor 创建本机移动应用和桌面应用。使用 Blazor.BB.Maui,可以快速开发共享代码库运行于 Windows (Winforms/WPF/UWP)、Android、iOS、macOS 的应用。
Version Downloads Last updated
8.0.6 1,679 12/9/2023
8.0.5 115 12/7/2023
8.0.4 112 12/7/2023
8.0.3 108 12/7/2023
8.0.2 109 12/7/2023
8.0.1 376 11/26/2023
8.0.0 618 11/15/2023
7.0.4 4,412 3/25/2023
7.0.3 1,138 2/2/2023
7.0.2 273 2/2/2023
7.0.1 1,428 12/16/2022
7.0.0 404 12/15/2022
0.0.1 311 12/14/2022