This repository has been archived by the owner on Jan 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
/
events_general.go
62 lines (59 loc) · 2.06 KB
/
events_general.go
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
59
60
61
62
package obsws
// This file is automatically generated.
// https://github.com/christopher-dG/go-obs-websocket/blob/master/codegen/protocol.py
// HeartbeatEvent : Emitted every 2 seconds after enabling it by calling SetHeartbeat.
//
// https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#heartbeat
type HeartbeatEvent struct {
// Toggles between every JSON message as an "I am alive" indicator.
// Required: Yes.
Pulse bool `json:"pulse"`
// Current active profile.
// Required: No.
CurrentProfile string `json:"current-profile"`
// Current active scene.
// Required: No.
CurrentScene string `json:"current-scene"`
// Current streaming state.
// Required: No.
Streaming bool `json:"streaming"`
// Total time (in seconds) since the stream started.
// Required: No.
TotalStreamTime int `json:"total-stream-time"`
// Total bytes sent since the stream started.
// Required: No.
TotalStreamBytes int `json:"total-stream-bytes"`
// Total frames streamed since the stream started.
// Required: No.
TotalStreamFrames int `json:"total-stream-frames"`
// Current recording state.
// Required: No.
Recording bool `json:"recording"`
// Total time (in seconds) since recording started.
// Required: No.
TotalRecordTime int `json:"total-record-time"`
// Total bytes recorded since the recording started.
// Required: No.
TotalRecordBytes int `json:"total-record-bytes"`
// Total frames recorded since the recording started.
// Required: No.
TotalRecordFrames int `json:"total-record-frames"`
// OBS Stats.
// Required: Yes.
Stats *OBSStats `json:"stats"`
_event `json:",squash"`
}
// BroadcastCustomMessageEvent : A custom broadcast message was received.
//
// Since obs-websocket version: 4.7.0.
//
// https://github.com/Palakis/obs-websocket/blob/4.x-current/docs/generated/protocol.md#broadcastcustommessage
type BroadcastCustomMessageEvent struct {
// Identifier provided by the sender.
// Required: Yes.
Realm string `json:"realm"`
// User-defined data.
// Required: Yes.
Data map[string]interface{} `json:"data"`
_event `json:",squash"`
}