|
@@ -1,67 +1,9 @@
|
1
|
|
-/**
|
2
|
|
- * This class translates the legacy signaling format between the client and the bridge (that affects bandwidth
|
3
|
|
- * allocation) to the new format described here https://github.com/jitsi/jitsi-videobridge/blob/master/doc/allocation.md
|
4
|
|
- */
|
5
|
|
-export class ReceiverVideoConstraints {
|
6
|
|
- _defaultConstraints: {
|
7
|
|
- maxHeight: number;
|
8
|
|
- };
|
9
|
|
- _lastN: number;
|
10
|
|
- _maxFrameHeight: number;
|
11
|
|
- _selectedEndpoints: any[];
|
12
|
|
- _receiverVideoConstraints: {
|
13
|
|
- constraints: {};
|
14
|
|
- defaultConstraints: any;
|
15
|
|
- lastN: number;
|
16
|
|
- onStageEndpoints: any[];
|
17
|
|
- selectedEndpoints: any[];
|
18
|
|
- };
|
19
|
|
- /**
|
20
|
|
- * Returns the receiver video constraints that need to be sent on the bridge channel.
|
21
|
|
- */
|
22
|
|
- get constraints(): {
|
23
|
|
- constraints: {};
|
24
|
|
- defaultConstraints: any;
|
25
|
|
- lastN: number;
|
26
|
|
- onStageEndpoints: any[];
|
27
|
|
- selectedEndpoints: any[];
|
28
|
|
- };
|
29
|
|
- /**
|
30
|
|
- * Updates the lastN field of the ReceiverVideoConstraints sent to the bridge.
|
31
|
|
- *
|
32
|
|
- * @param {number} value
|
33
|
|
- * @returns {boolean} Returns true if the the value has been updated, false otherwise.
|
34
|
|
- */
|
35
|
|
- updateLastN(value: number): boolean;
|
36
|
|
- /**
|
37
|
|
- * Updates the resolution (height requested) in the contraints field of the ReceiverVideoConstraints
|
38
|
|
- * sent to the bridge.
|
39
|
|
- *
|
40
|
|
- * @param {number} maxFrameHeight
|
41
|
|
- * @requires {boolean} Returns true if the the value has been updated, false otherwise.
|
42
|
|
- */
|
43
|
|
- updateReceiveResolution(maxFrameHeight: number): boolean;
|
44
|
|
- /**
|
45
|
|
- * Updates the receiver constraints sent to the bridge.
|
46
|
|
- *
|
47
|
|
- * @param {Object} videoConstraints
|
48
|
|
- * @returns {boolean} Returns true if the the value has been updated, false otherwise.
|
49
|
|
- */
|
50
|
|
- updateReceiverVideoConstraints(videoConstraints: any): boolean;
|
51
|
|
- /**
|
52
|
|
- * Updates the list of selected endpoints.
|
53
|
|
- *
|
54
|
|
- * @param {Array<string>} ids
|
55
|
|
- * @returns {void}
|
56
|
|
- */
|
57
|
|
- updateSelectedEndpoints(ids: Array<string>): void;
|
58
|
|
-}
|
59
|
1
|
/**
|
60
|
2
|
* This class manages the receive video contraints for a given {@link JitsiConference}. These constraints are
|
61
|
3
|
* determined by the application based on how the remote video streams need to be displayed. This class is responsible
|
62
|
4
|
* for communicating these constraints to the bridge over the bridge channel.
|
63
|
5
|
*/
|
64
|
|
-export class ReceiveVideoController {
|
|
6
|
+export default class ReceiveVideoController {
|
65
|
7
|
/**
|
66
|
8
|
* Creates a new instance for a given conference.
|
67
|
9
|
*
|
|
@@ -121,3 +63,62 @@ export class ReceiveVideoController {
|
121
|
63
|
*/
|
122
|
64
|
setReceiverConstraints(constraints: any): void;
|
123
|
65
|
}
|
|
66
|
+/**
|
|
67
|
+ * This class translates the legacy signaling format between the client and the bridge (that affects bandwidth
|
|
68
|
+ * allocation) to the new format described here https://github.com/jitsi/jitsi-videobridge/blob/master/doc/allocation.md
|
|
69
|
+ */
|
|
70
|
+declare class ReceiverVideoConstraints {
|
|
71
|
+ _defaultConstraints: {
|
|
72
|
+ maxHeight: number;
|
|
73
|
+ };
|
|
74
|
+ _lastN: number;
|
|
75
|
+ _maxFrameHeight: number;
|
|
76
|
+ _selectedEndpoints: any[];
|
|
77
|
+ _receiverVideoConstraints: {
|
|
78
|
+ constraints: {};
|
|
79
|
+ defaultConstraints: any;
|
|
80
|
+ lastN: number;
|
|
81
|
+ onStageEndpoints: any[];
|
|
82
|
+ selectedEndpoints: any[];
|
|
83
|
+ };
|
|
84
|
+ /**
|
|
85
|
+ * Returns the receiver video constraints that need to be sent on the bridge channel.
|
|
86
|
+ */
|
|
87
|
+ get constraints(): {
|
|
88
|
+ constraints: {};
|
|
89
|
+ defaultConstraints: any;
|
|
90
|
+ lastN: number;
|
|
91
|
+ onStageEndpoints: any[];
|
|
92
|
+ selectedEndpoints: any[];
|
|
93
|
+ };
|
|
94
|
+ /**
|
|
95
|
+ * Updates the lastN field of the ReceiverVideoConstraints sent to the bridge.
|
|
96
|
+ *
|
|
97
|
+ * @param {number} value
|
|
98
|
+ * @returns {boolean} Returns true if the the value has been updated, false otherwise.
|
|
99
|
+ */
|
|
100
|
+ updateLastN(value: number): boolean;
|
|
101
|
+ /**
|
|
102
|
+ * Updates the resolution (height requested) in the contraints field of the ReceiverVideoConstraints
|
|
103
|
+ * sent to the bridge.
|
|
104
|
+ *
|
|
105
|
+ * @param {number} maxFrameHeight
|
|
106
|
+ * @requires {boolean} Returns true if the the value has been updated, false otherwise.
|
|
107
|
+ */
|
|
108
|
+ updateReceiveResolution(maxFrameHeight: number): boolean;
|
|
109
|
+ /**
|
|
110
|
+ * Updates the receiver constraints sent to the bridge.
|
|
111
|
+ *
|
|
112
|
+ * @param {Object} videoConstraints
|
|
113
|
+ * @returns {boolean} Returns true if the the value has been updated, false otherwise.
|
|
114
|
+ */
|
|
115
|
+ updateReceiverVideoConstraints(videoConstraints: any): boolean;
|
|
116
|
+ /**
|
|
117
|
+ * Updates the list of selected endpoints.
|
|
118
|
+ *
|
|
119
|
+ * @param {Array<string>} ids
|
|
120
|
+ * @returns {void}
|
|
121
|
+ */
|
|
122
|
+ updateSelectedEndpoints(ids: Array<string>): void;
|
|
123
|
+}
|
|
124
|
+export {};
|