File tree Expand file tree Collapse file tree 3 files changed +57
-0
lines changed
src/BootstrapBlazor.Server Expand file tree Collapse file tree 3 files changed +57
-0
lines changed Original file line number Diff line number Diff line change 7676 </ItemGroup >
7777
7878 <ItemGroup >
79+ <ProjectReference Include =" ..\..\..\BootstrapBlazor.Extensions\src\components\BootstrapBlazor.JitsiMeet\BootstrapBlazor.JitsiMeet.csproj" />
7980 <ProjectReference Include =" ..\BootstrapBlazor\BootstrapBlazor.csproj" />
8081 </ItemGroup >
8182
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+ </Tips >
12+
13+ <DemoBlock Introduction =" 使用JitsiMeet创建会议室,支持执行命令,支持OnLoad回调。例子中隐藏了内置的邀请程序,无法在会议中找到邀请链接" Title =" 使用JitsiMeet创建会议室" Name =" Normal" >
14+ <Button OnClick =" RunCommand" >执行命令</Button >
15+ <Meet @ref =" Meet" Option =" @Option" Domain =" meet.jit.si" OnLoad =" OnLoad" ></Meet >
16+ </DemoBlock >
Original file line number Diff line number Diff line change 1+ using Microsoft . AspNetCore . Components ;
2+ using Console = System . Console ;
3+
4+ namespace BootstrapBlazor . Server . Components . Samples ;
5+
6+ public partial class Meets : ComponentBase
7+ {
8+ private MeetOption ? Option { get ; set ; }
9+
10+ private Meet ? Meet { get ; set ; }
11+
12+ protected override void OnInitialized ( )
13+ {
14+ base . OnInitialized ( ) ;
15+ Option = new MeetOption ( ) ;
16+ Option . RoomName = "BootstrapBlazor" ;
17+ Option . Width = "100%" ;
18+ Option . Height = 700 ;
19+ Option . ConfigOverwrite = new
20+ {
21+ Lobby = new { EnableChat = false } ,
22+ HiddenPremeetingButtons = new string [ ] { "invite" } ,
23+ DisableInviteFunctions = true ,
24+ ButtonsWithNotifyClick = new [ ] { new { key = "invite" , preventExecution = true } }
25+ } ;
26+ Option . UserInfo = new UserInfo ( ) { DisplayName = "BootstrapBlazor" , Email = "[email protected] " } ; 27+
28+ }
29+
30+ private void OnLoad ( )
31+ {
32+ Console . WriteLine ( "会议室加载完成" ) ;
33+ }
34+
35+ private void RunCommand ( )
36+ {
37+ Meet ? . ExecuteCommand ( "toggleChat" ) ;
38+ }
39+ }
40+
You can’t perform that action at this time.
0 commit comments