Polyv Help Center

Help Center

How to Get the Viewer's Mute Status in the iOS Live Streaming SDK

Updated: 2023-03-26 20:05:59

Problem Description

In the iOS native live streaming SDK, under special scenarios, it is necessary to obtain the viewer's mute status to fulfill personalized requirements.

Solution

PLVChatroomManager is a singleton class. Each time a viewer logs into the live stream, only one PLVChatroomManager instance exists. The code to check whether the currently logged-in user is muted is as follows:

// 获取聊天室当前登录观众是否被禁言
[[PLVChatroomManager sharedManager] banned];
联系客服,在线咨询