2025-12-19 02:33:43 +01:00
|
|
|
import Foundation
|
|
|
|
|
|
2026-01-30 03:15:10 +01:00
|
|
|
public enum OpenClawScreenCommand: String, Codable, Sendable {
|
2025-12-19 02:33:43 +01:00
|
|
|
case record = "screen.record"
|
|
|
|
|
}
|
|
|
|
|
|
2026-01-30 03:15:10 +01:00
|
|
|
public struct OpenClawScreenRecordParams: Codable, Sendable, Equatable {
|
2025-12-19 02:33:43 +01:00
|
|
|
public var screenIndex: Int?
|
|
|
|
|
public var durationMs: Int?
|
|
|
|
|
public var fps: Double?
|
|
|
|
|
public var format: String?
|
2025-12-19 03:16:25 +01:00
|
|
|
public var includeAudio: Bool?
|
2025-12-19 02:33:43 +01:00
|
|
|
|
|
|
|
|
public init(
|
|
|
|
|
screenIndex: Int? = nil,
|
|
|
|
|
durationMs: Int? = nil,
|
|
|
|
|
fps: Double? = nil,
|
2025-12-19 03:16:25 +01:00
|
|
|
format: String? = nil,
|
|
|
|
|
includeAudio: Bool? = nil)
|
2025-12-19 02:33:43 +01:00
|
|
|
{
|
|
|
|
|
self.screenIndex = screenIndex
|
|
|
|
|
self.durationMs = durationMs
|
|
|
|
|
self.fps = fps
|
|
|
|
|
self.format = format
|
2025-12-19 03:16:25 +01:00
|
|
|
self.includeAudio = includeAudio
|
2025-12-19 02:33:43 +01:00
|
|
|
}
|
|
|
|
|
}
|