跳转到内容
搜索文档

RtkLivestreamViewerCount

最后更新 查看 MarkdownAgent 设置

显示当前直播的观众人数。

方法

方法 参数 描述
refresh meeting: RealtimeKitClient 根据当前的会议状态更新观众人数

使用示例

基本用法

<com.cloudflare.realtimekit.ui.view.RtkLivestreamViewerCount
    android:id="@+id/rtk_viewer_count"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content" />

配合方法使用

val viewerCount = findViewById<RtkLivestreamViewerCount>(R.id.rtk_viewer_count)
viewerCount.refresh(meeting)

这篇文档对您有帮助吗?