[+] HarmonyOS -> Android

This commit is contained in:
acgist
2023-03-20 20:51:05 +08:00
parent 409a4a94c3
commit c216d8a611
97 changed files with 740 additions and 529 deletions

View File

@@ -1,5 +1,7 @@
package com.acgist.taoyao.boot.config;
import java.util.Map;
import org.springframework.boot.context.properties.ConfigurationProperties;
import io.swagger.v3.oas.annotations.media.Schema;
@@ -45,15 +47,9 @@ public class MediaProperties {
private MediaAudioProperties audio;
@Schema(title = "视频默认配置", description = "视频默认配置")
private MediaVideoProperties video;
@Schema(title = "4K视频配置", description = "4K视频配置")
private MediaVideoProperties udVideo;
@Schema(title = "2K视频配置", description = "2K视频配置")
private MediaVideoProperties qdVideo;
@Schema(title = "超清视频配置", description = "超清视频配置")
private MediaVideoProperties fdVideo;
@Schema(title = "高清视频配置", description = "高清视频配置")
private MediaVideoProperties hdVideo;
@Schema(title = "标清视频配置", description = "标清视频配置")
private MediaVideoProperties sdVideo;
@Schema(title = "频配置", description = "频配置")
private Map<String, MediaAudioProperties> audios;
@Schema(title = "视频配置", description = "视频配置")
private Map<String, MediaVideoProperties> videos;
}

View File

@@ -85,47 +85,65 @@ taoyao:
# 采样率
min-sample-rate: 8000
max-sample-rate: 48000
# ABR CBR VBR
# 默认音频
audio:
format: OPUS
sample-size: 16
sample-rate: 32000
sample-size: 32
sample-rate: 44100
# 默认视频
video:
format: H264
bitrate: 1200
frame-rate: 24
resolution: 1920*1080
# 4KUD=UHD=4K
ud-video:
format: H264
bitrate: 1600
frame-rate: 45
resolution: 4096*2160
# 2KQD=QHD=2K
qd-video:
format: H264
bitrate: 1600
frame-rate: 30
resolution: 2560*1440
# 超清视频FD=FHD=1080P
fd-video:
format: H264
bitrate: 1200
frame-rate: 24
resolution: 1920*1080
# 高清视频HD=720P
hd-video:
format: H264
bitrate: 1000
frame-rate: 18
resolution: 1280*720
# 标清视频SD=480P
sd-video:
format: H264
bitrate: 800
frame-rate: 15
resolution: 720*480
audios:
# 超清
fd-audio:
format: OPUS
sample-size: 32
sample-rate: 48000
# 高清
hd-audio:
format: OPUS
sample-size: 24
sample-rate: 44100
# 标清
sd-audio:
format: OPUS
sample-size: 24
sample-rate: 32000
videos:
# 4KUD=UHD=4K
ud-video:
format: H264
bitrate: 1600
frame-rate: 45
resolution: 4096*2160
# 2KQD=QHD=2K
qd-video:
format: H264
bitrate: 1600
frame-rate: 30
resolution: 2560*1440
# 超清视频FD=FHD=1080P
fd-video:
format: H264
bitrate: 1200
frame-rate: 24
resolution: 1920*1080
# 高清视频HD=720P
hd-video:
format: H264
bitrate: 1000
frame-rate: 18
resolution: 1280*720
# 标清视频SD=480P
sd-video:
format: H264
bitrate: 800
frame-rate: 15
resolution: 720*480
# Socket信令
socket:
enabled: true