Files
streamctl/pkg/streamd/config/dashboard_source_image_obs.go
2025-02-15 22:06:43 +00:00

28 lines
567 B
Go

package config
import (
"context"
"image"
"time"
"github.com/xaionaro-go/obs-grpc-proxy/protobuf/go/obs_grpc"
"github.com/xaionaro-go/streamctl/pkg/streamtypes"
)
type GetImageBytesFromOBSer interface {
GetImageBytesFromOBS(
ctx context.Context,
obsServer obs_grpc.OBSServer,
el DashboardElementConfig,
) ([]byte, string, time.Time, error)
}
type GetImageFromOBSer interface {
GetImageFromOBS(
ctx context.Context,
obsServer obs_grpc.OBSServer,
el DashboardElementConfig,
obsState *streamtypes.OBSState,
) (image.Image, time.Time, error)
}