mirror of
https://github.com/xaionaro-go/streamctl.git
synced 2025-09-26 19:41:17 +08:00
28 lines
567 B
Go
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)
|
|
}
|