package com.platform.modules.live.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

/**
 * @Description: 生成直播url的数据传输对象
 * @Author: yikaihong
 * @CreateDate: 2019/1/19 11:36
 * @Version: 1.0
 */
@Data
public class GenerateLiveUrlDto {

    @NotBlank
    private String appName;

    @NotBlank
    private String streamName;

    private String authKey;

    private Integer valid = 1800; // 有效时长，单位s

    private String protocol = "rtmp://"; //协议

    private String domain; // 域名

    private Integer isPush; // 1:代表是，0代表不是,考虑到以后分开获取

}