package com.sjyt.icom.asst.service.impl;

import com.sjyt.icom.asst.common.model.message.VerifyClaims;
import com.sjyt.icom.asst.common.model.room.SrsUrlObj;
import com.sjyt.icom.asst.service.IStreamUrlService;

/**
 * <p>BaseStreamUrlService</p>
 *
 * @author renyanru
 * @version V1.0.0
 * @date 2022/6/30 15:42
 */
public abstract class BaseStreamUrlService implements IStreamUrlService<String, VerifyClaims> {
    /**
     * 初始化StreamUrl地址
     * todo 目前只初始化了rtc相关,其他协议url为初始化
     * @param verifyClaims v
     * @return r
     */
    public SrsUrlObj init(VerifyClaims verifyClaims){
        return SrsUrlObj.builder().rtcPublishPullUrl(initialRtcUrl(verifyClaims)).build();
    }
}
