-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathschema.ts
More file actions
58 lines (52 loc) · 1.07 KB
/
schema.ts
File metadata and controls
58 lines (52 loc) · 1.07 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import { gql } from 'apollo-server'
export default gql`
"""
A channel is an individual composition of various sources, layed out on different layers
"""
type Channel {
id: ID!
number: Int!
videoFormat: VideoFormat!
layers: [Layer!]!
}
"""
A producer is a media stream source that will produce media when not paused
"""
type Producer {
sourceId: ID!
format: VideoFormat!
paused: Boolean!
}
type Mixer {
dupa: String
}
"""
A layer is a part of the channel, that can have a foreground and a background. The background can play
automatically, if the foreground is empty.
"""
type Layer {
foreground: Producer
background: Producer
autoPlay: Boolean!
mixer: Mixer!
}
"""
A video format is a specification of the audio & video format that will be produced by a Channel
"""
type VideoFormat {
name: String!
fields: Int!
width: Int!
height: Int!
squareWidth: Int!
squareHeight: Int!
timescale: Float!
duration: Int!
audioSampleRate: Int!
audioChannels: Int!
}
type Query {
channels: [Channel]!
videoFormats: [VideoFormat]!
}
`