[*] README

This commit is contained in:
acgist
2022-12-02 08:26:04 +08:00
parent 63cec4e167
commit 6c76c8d9a3
2 changed files with 43 additions and 1 deletions

View File

@@ -9,7 +9,7 @@
|:--|:--|:--|
|taoyao|桃夭|桃之夭夭灼灼其华|
|taoyao-boot|基础|基础模块|
|taoyao-live|直播|连麦|
|taoyao-live|直播|直播、连麦、本地视频同看|
|taoyao-test|测试|测试模块|
|taoyao-media|媒体|录制<br />音频(降噪、混音、变声)<br />视频水印、美颜、AI识别|
|taoyao-signal|信令|信令服务|

View File

@@ -1,5 +1,7 @@
package com.acgist.taoyao.live;
import java.util.List;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
@@ -13,5 +15,45 @@ import lombok.Setter;
@Setter
@Schema(title = "直播", description = "直播")
public class Live {
/**
* 直播标识
*/
@Schema(title = "直播标识", description = "直播标识")
private String id;
/**
* 直播名称
*/
@Schema(title = "直播名称", description = "直播名称")
private String name;
/**
* 直播密码
*/
@Schema(title = "直播密码", description = "直播密码")
private String password;
/**
* 终端会话标识列表
*/
@Schema(title = "终端会话标识列表", description = "终端会话标识列表")
private List<String> sns;
/**
* 创建终端标识
*/
@Schema(title = "创建终端标识", description = "创建终端标识")
private String creator;
/**
* 新增终端会话标识
*
* @param sn 终端会话标识
*/
public void addSn(String sn) {
synchronized (this.sns) {
if(this.sns.contains(sn)) {
return;
}
this.sns.add(sn);
}
}
}