package com.platform.plugs.live.config;

import lombok.Data;

/**
 * @Author TONG
 * @Date 2019/2/18 20:13
 **/
@Data
public class LiveStreamConfig {
    /**
     * 推流域名
     */
    private String pushDomain;
    /**
     * 推流URL鉴权key
     */
    private String pushKey;
    /**
     * 推流鉴权时间
     */
    private Integer pushAuthTime = 30 * 60;
    /**
     * 播流域名
     */
    private String liveDomain;
    /**
     * 播流URL鉴权key
     */
    private String liveKey;
    /**
     * 播流鉴权时间，默认24小时
     */
    private Integer liveAuthTime = 30 * 60;
    /**
     * 直播时移鉴权时间，漠然3天
     */
    private Integer timeShiftAuthTime = 3 * 24* 60 *60;

    public LiveStreamConfig(String pushDomain, String pushKey, String liveDomain, String liveKey) {
        this.pushDomain = pushDomain;
        this.pushKey = pushKey;
        this.liveDomain = liveDomain;
        this.liveKey = liveKey;
    }
}
