initial implementation of Windows SMTC integration

This commit is contained in:
Drew Weymouth
2025-01-15 17:42:44 -08:00
parent 6d4d87cb66
commit cb01703776
5 changed files with 282 additions and 15 deletions
+32
View File
@@ -0,0 +1,32 @@
//go:build !windows
package backend
import "errors"
type SMTCPlaybackState int
const (
SMTCPlaybackStateStopped SMTCPlaybackState = 0
SMTCPlaybackStatePlaying SMTCPlaybackState = 1
SMTCPlaybackStatePaused SMTCPlaybackState = 2
)
type SMTC struct{}
var smtcUnsupportedErr = errors.New("SMTC is not supported on this platformo")
func InitSMTCForWindow(hwnd uintptr) (*SMTC, error) {
return nil, smtcUnsupportedErr
}
func (s *SMTC) UpdatePlaybackState(state SMTCPlaybackState) error {
return smtcUnsupportedErr
}
func (s *SMTC) UpdateMetadata(title, artist string) error {
return smtcUnsupportedErr
}
func (s *SMTC) Shutdown() {
}