-
Notifications
You must be signed in to change notification settings - Fork 1
/
conversation_video.go
30 lines (24 loc) · 1.15 KB
/
conversation_video.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
package gcloudcx
import (
"time"
"github.com/google/uuid"
)
// ConversationVideo describes a Video (like belonging to Participant)
type ConversationVideo struct {
ID uuid.UUID `json:"id"`
Self Address `json:"self"`
State string `json:"state"` // alerting,dialing,contacting,offering,connected,disconnected,terminated,converting,uploading,transmitting,scheduled,none
Segments []Segment `json:"segments"`
Provider string `json:"provider"`
PeerID string `json:"peerId"`
PeerCount int `json:"peerCount"`
Context string `json:"context"`
AudioMuted bool `json:"audioMuted"`
VideoMuted bool `json:"videoMuted"`
SharingScreen bool `json:"sharingScreen"`
MSIDs []string `json:"msids"`
ConnectedTime time.Time `json:"connectedTime"`
DisconnectedTime time.Time `json:"disconnectedTime"`
StartAlertingTime time.Time `json:"startAlertingTime"`
DisconnectType string `json:"disconnectType"` // endpoint,client,system,transfer,timeout,transfer.conference,transfer.consult,transfer.forward,transfer.noanswer,transfer.notavailable,transport.failure,error,peer,other,spam,uncallable
}