forked from zoom-lib-golang/zoom-lib-golang
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcloud_recording.go
60 lines (56 loc) · 2.79 KB
/
cloud_recording.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
package zoom // Use this file for /recording endpoints
const (
// RecordingTypeSharedScreenWithSpeakerViewCC is a shared screen with spearker view (CC) recording
RecordingTypeSharedScreenWithSpeakerViewCC RecordingType = "shared_screen_with_speaker_view(CC)"
// RecordingTypeSharedScreenWithSpeakerView is a shared screen with spearker view recording
RecordingTypeSharedScreenWithSpeakerView RecordingType = "shared_screen_with_speaker_view"
// RecordingTypeSharedScreenWithGalleryView is a shared screen with gallery view recording
RecordingTypeSharedScreenWithGalleryView RecordingType = "shared_screen_with_gallery_view"
// RecordingTypeSpeakerView is a speaker view recording
RecordingTypeSpeakerView RecordingType = "speaker_view"
// RecordingTypeGalleryView is a gallery view recording
RecordingTypeGalleryView RecordingType = "gallery_view"
// RecordingTypeSharedScreen is a shared screen recording
RecordingTypeSharedScreen RecordingType = "shared_screen"
// RecordingTypeAudioOnly is an audio only recording
RecordingTypeAudioOnly RecordingType = "audio_only"
// RecordingTypeAudioTranscript is an audio transcript recording
RecordingTypeAudioTranscript RecordingType = "audio_transcript"
// RecordingTypeChatFile is a chat file recording
RecordingTypeChatFile RecordingType = "chat_file"
// RecordingTypeTIMELINE is a timeline recording
RecordingTypeTIMELINE RecordingType = "TIMELINE"
)
type (
// RecordingType is the recording file type
RecordingType string
// RecordingFile represents a recordings file object
RecordingFile struct {
ID string `json:"id"`
MeetingID string `json:"meeting_id"`
RecordingStart *Time `json:"recording_start"`
RecordingEnd *Time `json:"recording_end"`
FileType string `json:"file_type"`
FileSize int `json:"file_size"`
PlayURL string `json:"play_url"`
// The URL using which the recording file can be downloaded. To access a private or
// password protected cloud recording, you must use a [Zoom JWT App Type]
DownloadURL string `json:"download_url"`
Status string `json:"status"`
DeletedTime *Time `json:"deleted_time"`
RecordingType RecordingType `json:"recording_type"`
}
// CloudRecordingMeeting represents a zoom meeting object
CloudRecordingMeeting struct {
UUID string `json:"uuid"`
ID string `json:"id"`
AccountID string `json:"account_id"`
HostID string `json:"host_id"`
Topic string `json:"topic"`
StartTime *Time `json:"start_time"`
Duration int `json:"duration"`
TotalSize string `json:"total_size"`
RecordingCount string `json:"recording_count"`
RecordingFiles []RecordingFile `json:"recording_files"`
}
)