Skip to content

Commit 7985cf3

Browse files
committed
例子中添加更多说明以及支持自定义服务器地址
1 parent 8fd6088 commit 7985cf3

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

src/BootstrapBlazor.Server/Components/Samples/Meets.razor

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,18 @@
88

99
<Tips class="mt-3">
1010
<p>JitsiMeet是一个开源的WebRTC会议程序,可以自托管安装也可以使用官方的托管服务(免费计划为25MAU),此组件仅为JitsiMeet的客户端程序,不含服务端。</p>
11+
<p>默认的测试会议仅支持5分钟的会议,并且主持人需要登录。子托管以及官方托管服务不需要。</p>
1112
</Tips>
1213

13-
<DemoBlock Introduction="使用JitsiMeet创建会议室,支持执行命令,支持OnLoad回调。例子中隐藏了内置的邀请程序,无法在会议中找到邀请链接" Title="使用JitsiMeet创建会议室" Name="Normal">
14+
<DemoBlock Introduction="使用JitsiMeet创建会议室,支持执行命令,支持OnLoad回调(meet.jit.si不会触发回调也不会响应命令,请使用8x8.vc或子托管域名测试)。例子中隐藏了内置的邀请程序,无法在会议中找到邀请链接" Title="使用JitsiMeet创建会议室" Name="Normal">
1415
<Button OnClick="RunCommand">执行命令</Button>
15-
<Meet @ref="Meet" Option="@Option" Domain="meet.jit.si" OnLoad="OnLoad"></Meet>
16+
<div class="row g-3">
17+
<div class="col-6">
18+
<BootstrapInput @bind-Value="Domain" DisplayText="服务器地址" ShowLabel="true"></BootstrapInput>
19+
</div>
20+
<div class="col-6">
21+
<BootstrapInput @bind-Value="RoomName" DisplayText="会议室名称" ShowLabel="true"></BootstrapInput>
22+
</div>
23+
</div>
24+
<Meet @ref="Meet" Option="@Option" Domain="@Domain" OnLoad="OnLoad"></Meet>
1625
</DemoBlock>

src/BootstrapBlazor.Server/Components/Samples/Meets.razor.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,20 @@ public partial class Meets : ComponentBase
99

1010
private Meet? Meet { get; set; }
1111

12+
private string Domain { get; set; } = "meet.jit.si";
13+
14+
private string? RoomName { get; set; } = "BootstrapBlazor";
15+
16+
private bool IsDisable { get; set; } = true;
17+
18+
/// <summary>
19+
/// <inheritdoc />
20+
/// </summary>
1221
protected override void OnInitialized()
1322
{
1423
base.OnInitialized();
1524
Option = new MeetOption();
16-
Option.RoomName = "BootstrapBlazor";
25+
Option.RoomName = RoomName;
1726
Option.Width = "100%";
1827
Option.Height = 700;
1928
Option.ConfigOverwrite = new

0 commit comments

Comments
 (0)