-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathMediaSceneState.cs
More file actions
33 lines (30 loc) · 854 Bytes
/
MediaSceneState.cs
File metadata and controls
33 lines (30 loc) · 854 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
namespace PrompterOne.Core.Models.Media;
public sealed record MediaSourceTransform(
double X = 0.5,
double Y = 0.5,
double Width = 0.32,
double Height = 0.32,
double Rotation = 0,
bool MirrorHorizontal = false,
bool MirrorVertical = false,
bool Visible = true,
bool IncludeInOutput = true,
int ZIndex = 0,
double Opacity = 1.0);
public sealed record SceneCameraSource(
string SourceId,
string DeviceId,
string Label,
MediaSourceTransform Transform);
public sealed record MediaSceneState(
IReadOnlyList<SceneCameraSource> Cameras,
string? PrimaryMicrophoneId,
string? PrimaryMicrophoneLabel,
AudioBusState AudioBus)
{
public static MediaSceneState Empty { get; } = new(
Array.Empty<SceneCameraSource>(),
null,
null,
AudioBusState.Empty);
}