| #include <string> |
| 6 | #include <stdint.h> |
| 7 |
| 8 | namespace tgcalls { |
| 9 |
| 10 | struct GroupJoinPayloadVideoSourceGroup { |
| 11 | std::vector<uint32_t> ssrcs; |
| 12 | std::string semantics; |
| 13 | }; |
| 14 |
| 15 | struct GroupJoinPayloadVideoPayloadType { |
| 16 | struct FeedbackType { |
| 17 | std::string type; |
| 18 | std::string subtype; |
| 19 | }; |
| 20 |
| 21 | uint32_t id = 0; |
| 22 | std::string name; |
| 23 | uint32_t clockrate = 0; |
| 24 | uint32_t channels = 0; |
| 25 | std::vector<FeedbackType> feedbackTypes; |
| 26 | std::vector<std::pair<std::string, std::string>> parameters; |
| 27 | }; |
| 28 |
| 29 | struct GroupJoinTransportDescription { |
| 30 | struct Fingerprint { |
| 31 | std::string hash; |
| 32 | std::string setup; |
| 33 | std::string fingerprint; |
| 34 | }; |
| 35 |
| 36 | struct Candidate { |
| 37 | std::string port; |
| 38 | std::string protocol; |
| 39 | std::string network; |
| 40 | std::string generation; |
| 41 | std::string id; |
| 42 | std::string component; |
| 43 | std::string foundation; |
| 44 | std::string priority; |
| 45 | std::string ip; |
| 46 | std::string type; |
| 47 |
| 48 | std::string tcpType; |
| 49 | std::string relAddr; |
| 50 | std::string relPort; |
| 51 | }; |
| 52 |
| 53 | std::string ufrag; |
| 54 | std::string pwd; |
| 55 | std::vector<Fingerprint> fingerprints; |
| 56 | std::vector<Candidate> candidates; |
| 57 | }; |
| 58 |
| 59 | struct GroupJoinVideoInformation { |
| 60 | uint32_t serverVideoBandwidthProbingSsrc = 0; |
| 61 | std::string endpointId; |
| 62 | std::vector<GroupJoinPayloadVideoPayloadType> payloadTypes; |
| 63 | std::vector<std::pair<uint32_t, std::string>> extensionMap; |
| 64 | }; |
| 65 |
| 66 | struct GroupParticipantVideoInformation { |
| 67 | std::string endpointId; |
| 68 | std::vector<GroupJoinPayloadVideoSourceGroup> ssrcGroups; |
| 69 | }; |
| 70 |
| 71 | struct GroupJoinPayload { |
| 72 | uint32_t audioSsrc = 0; |
| 73 | std::string json; |
| 74 | }; |
| 75 |
| 76 | } |
| 77 |
| 78 | #endif |
| 79 |