File tree Expand file tree Collapse file tree 7 files changed +93
-3
lines changed
src/BootstrapBlazor.Server Expand file tree Collapse file tree 7 files changed +93
-3
lines changed Original file line number Diff line number Diff line change 4545 <PackageReference Include =" BootstrapBlazor.IconPark" Version =" 9.0.3" />
4646 <PackageReference Include =" BootstrapBlazor.ImageCropper" Version =" 9.0.0" />
4747 <PackageReference Include =" BootstrapBlazor.IP2Region" Version =" 9.0.1" />
48+ <PackageReference Include =" BootstrapBlazor.JitsiMeet" Version =" 9.0.0" />
4849 <PackageReference Include =" BootstrapBlazor.JuHeIpLocatorProvider" Version =" 9.0.0" />
4950 <PackageReference Include =" BootstrapBlazor.Live2DDisplay" Version =" 9.0.1" />
5051 <PackageReference Include =" BootstrapBlazor.Markdown" Version =" 9.0.2" />
Original file line number Diff line number Diff line change 1+ @page " /meet"
2+
3+ <h3 >JitsiMeet会议</h3 >
4+
5+ <h4 >通过JitsiMeet创建会议</h4 >
6+
7+ <PackageTips Name =" BootstrapBlazor.JitsiMeet" />
8+
9+ <Tips class =" mt-3" >
10+ <p >JitsiMeet是一个开源的WebRTC会议程序,可以自托管安装也可以使用官方的托管服务(免费计划为25MAU),此组件仅为JitsiMeet的客户端程序,不含服务端。</p >
11+ <p >默认的测试会议仅支持5分钟的会议,并且主持人需要登录。子托管以及官方托管服务不需要。</p >
12+ </Tips >
13+
14+ <DemoBlock Title =" 使用JitsiMeet创建会议室" Introduction =" 使用JitsiMeet创建会议室,支持执行命令,支持OnLoad回调(meet.jit.si不会触发回调也不会响应命令,请使用8x8.vc或子托管域名测试)。例子中隐藏了内置的邀请程序,无法在会议中找到邀请链接。" Name =" Normal" >
15+ <section class =" row form-inline g-3" >
16+ <div class =" col-12 col-sm-6" >
17+ <Display Value =" _domain" DisplayText =" 服务器地址" ShowLabel =" true" ></Display >
18+ </div >
19+ <div class =" col-12 col-sm-6" >
20+ <Button OnClick =" RunCommand" >执行命令</Button >
21+ </div >
22+ </section >
23+ <Meet @ref =" @_meet" Option =" @_option" Domain =" @_domain" OnLoad =" OnLoad" ></Meet >
24+ </DemoBlock >
Original file line number Diff line number Diff line change 1+ // Licensed to the .NET Foundation under one or more agreements.
2+ // The .NET Foundation licenses this file to you under the Apache 2.0 License
3+ // See the LICENSE file in the project root for more information.
4+ // Maintainer: Argo Zhang([email protected] ) Website: https://www.blazor.zone 5+
6+ namespace BootstrapBlazor . Server . Components . Samples ;
7+
8+ /// <summary>
9+ /// Meet 视频会议组件示例
10+ /// </summary>
11+ public partial class Meets : ComponentBase
12+ {
13+ private MeetOption ? _option ;
14+ private Meet ? _meet ;
15+ private readonly string _domain = "meet.jit.si" ;
16+
17+ [ Inject , NotNull ]
18+ private ToastService ? ToastService { get ; set ; }
19+
20+ /// <summary>
21+ /// <inheritdoc />
22+ /// </summary>
23+ protected override void OnInitialized ( )
24+ {
25+ base . OnInitialized ( ) ;
26+
27+ _option = new MeetOption
28+ {
29+ RoomName = "BootstrapBlazor" ,
30+ Width = "100%" ,
31+ Height = 700 ,
32+ ConfigOverwrite = new
33+ {
34+ Lobby = new { EnableChat = false } ,
35+ HiddenPremeetingButtons = new string [ ] { "invite" } ,
36+ DisableInviteFunctions = true ,
37+ ButtonsWithNotifyClick = new [ ] { new { key = "invite" , preventExecution = true } }
38+ } ,
39+ UserInfo = new UserInfo ( ) { DisplayName = "BootstrapBlazor" , Email = "[email protected] " } 40+ } ;
41+ }
42+
43+ private void OnLoad ( )
44+ {
45+ ToastService . Information ( "Meet 示例" , "会议室加载完成" ) ;
46+ }
47+
48+ private async Task RunCommand ( )
49+ {
50+ if ( _meet != null )
51+ {
52+ await _meet . ExecuteCommand ( "toggleChat" ) ;
53+ }
54+ }
55+ }
56+
Original file line number Diff line number Diff line change @@ -1208,6 +1208,12 @@ void AddNotice(DemoMenuItem item)
12081208 Url = "message"
12091209 } ,
12101210 new ( )
1211+ {
1212+ IsNew = true ,
1213+ Text = Localizer [ "Meet" ] ,
1214+ Url = "meet"
1215+ } ,
1216+ new ( )
12111217 {
12121218 Text = Localizer [ "Modal" ] ,
12131219 Url = "modal"
Original file line number Diff line number Diff line change 49434943 "TotpService": "ITotpService",
49444944 "VideoDevice": "IVideoDevice",
49454945 "AudioDevice": "IAudioDevice",
4946- "FullScreenButton": "FullScreenButton"
4946+ "FullScreenButton": "FullScreenButton",
4947+ "Meet": "Meet"
49474948 },
49484949 "BootstrapBlazor.Server.Components.Samples.Table.TablesHeader": {
49494950 "TablesHeaderTitle": "Header grouping function",
Original file line number Diff line number Diff line change 49434943 "TotpService" : " 时间密码验证服务 ITotpService" ,
49444944 "VideoDevice" : " 视频设备服务 IVideoDevice" ,
49454945 "AudioDevice" : " 音频设备服务 IAudioDevice" ,
4946- "FullScreenButton" : " 全屏按钮 FullScreenButton"
4946+ "FullScreenButton" : " 全屏按钮 FullScreenButton" ,
4947+ "Meet" : " 视频会议组件 Meet"
49474948 },
49484949 "BootstrapBlazor.Server.Components.Samples.Table.TablesHeader" : {
49494950 "TablesHeaderTitle" : " 表头分组功能" ,
Original file line number Diff line number Diff line change 233233 "otp-service" : " OtpServices" ,
234234 "video-device" : " VideoDevices" ,
235235 "audio-device" : " AudioDevices" ,
236- "fullscreen-button" : " FullScreenButtons"
236+ "fullscreen-button" : " FullScreenButtons" ,
237+ "meet" : " Meets"
237238 },
238239 "video" : {
239240 "table" : " BV1ap4y1x7Qn?p=1" ,
You can’t perform that action at this time.
0 commit comments