10 Significance of Setting a Unique Student Identifier
Updated: 2023-04-17 15:27:58
Overview
Unique Student Identifier = viewerId = Audience ID = Student ID
The terms unique student identifier, viewerId, audience ID, and student ID convey the same meaning in documentation and code, and are gradually being unified.
Significance
Setting a unique student identifier offers the following advantages:
- Effectively locate issues reported by students.
- Significantly reduce communication costs with students.
- Effectively improve the efficiency of troubleshooting on the SDK side.
- Aggregate error logs for a specific unique student identifier.
Method
com.easefun.polyvsdk.PolyvSDKClient
/**
* 设置观众id,默认为空字符串{@code ""}<br/>
* 参数会用于两个地方<br/>
* 第一会作为请求播放授权token时的参数-观众id<br/>
* 第二会作为观看日志的自定义ID,可以用于传递观众id<br/>
* @param viewerId 观众id
*/
public void setViewerId(String viewerId)
The viewerId passed when calling the setViewerId method is saved as a global variable. Multiple calls will overwrite the previous value.
In an app, the unique student identifier is typically set after the student logs in.
The SDK has been upgraded with corresponding handling for the unique student identifier. Please upgrade the SDK to 2.7.0 or later.
