force users to pick capable display range.

This commit is contained in:
KingKDot
2026-07-13 09:34:16 -05:00
parent 1bc6364055
commit 447efa5192
16 changed files with 651 additions and 66 deletions
@@ -0,0 +1,17 @@
package capture
type DesktopEncoderProfile struct {
MaxHeight int `msgpack:"maxHeight" json:"maxHeight"`
Width int `msgpack:"width" json:"width"`
Height int `msgpack:"height" json:"height"`
FPS int `msgpack:"fps" json:"fps"`
Label string `msgpack:"label" json:"label"`
Providers []string `msgpack:"providers" json:"providers"`
}
type DesktopEncoderCapabilities struct {
Probed bool `msgpack:"probed" json:"probed"`
Display int `msgpack:"display" json:"display"`
Profiles []DesktopEncoderProfile `msgpack:"profiles" json:"profiles"`
Detail string `msgpack:"detail,omitempty" json:"detail,omitempty"`
}