feat: apiHost 改为 api.duooomi.com,ANI 转换参数可配置

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
km2023
2026-04-16 14:24:02 +08:00
parent 63dc4b7902
commit 79af43cdef
5 changed files with 24 additions and 21 deletions

View File

@@ -12,18 +12,30 @@ public struct DuooomiBleConfig: Sendable {
public let firmwareIdentifier: String
/// "DRAFT" / "PUBLISHED"
public let firmwareStatus: String
/// ANI
public let aniWidth: Int
/// ANI
public let aniHeight: Int
/// ANI
public let aniFps: String
public init(
apiHost: URL = URL(string: "https://api.mixvideo.bowong.cc")!,
apiHost: URL = URL(string: "https://api.duooomi.com")!,
apiKey: String,
cdnHost: String = "https://cdn.bowong.cc/",
firmwareIdentifier: String = "duomi",
firmwareStatus: String = "DRAFT"
firmwareStatus: String = "DRAFT",
aniWidth: Int = 360,
aniHeight: Int = 360,
aniFps: String = "24"
) {
self.apiHost = apiHost
self.apiKey = apiKey
self.cdnHost = cdnHost.hasSuffix("/") ? cdnHost : cdnHost + "/"
self.firmwareIdentifier = firmwareIdentifier
self.firmwareStatus = firmwareStatus
self.aniWidth = aniWidth
self.aniHeight = aniHeight
self.aniFps = aniFps
}
}