30 lines
756 B
Java
30 lines
756 B
Java
|
|
package com.multictrl.common.config;
|
||
|
|
|
||
|
|
import feign.auth.BasicAuthRequestInterceptor;
|
||
|
|
import lombok.Data;
|
||
|
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||
|
|
import org.springframework.context.annotation.Bean;
|
||
|
|
import org.springframework.context.annotation.Configuration;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 直播服务器配置
|
||
|
|
*
|
||
|
|
* @author Sdy
|
||
|
|
* @since 1.0.0 2026/5/7
|
||
|
|
*/
|
||
|
|
@Data
|
||
|
|
@Configuration
|
||
|
|
@ConfigurationProperties(prefix = "srs")
|
||
|
|
public class SrsConfig {
|
||
|
|
private String ip;
|
||
|
|
private String rtmpPort;
|
||
|
|
private String rtmpToken;
|
||
|
|
private String username;
|
||
|
|
private String password;
|
||
|
|
|
||
|
|
@Bean
|
||
|
|
public BasicAuthRequestInterceptor basicAuthRequestInterceptor() {
|
||
|
|
return new BasicAuthRequestInterceptor(username, password);
|
||
|
|
}
|
||
|
|
}
|