aes70 1.6.0 → 1.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Changelog +30 -0
- package/dist/AES70.es5.js +5795 -1
- package/package.json +1 -1
- package/src/OCP1/encoded_arguments.js +31 -19
- package/src/connection.d.ts +5 -0
- package/src/controller/ControlClasses/OcaBlock.d.ts +15 -15
- package/src/controller/ControlClasses/OcaBlock.js +16 -16
- package/src/controller/ControlClasses/OcaControlNetwork.d.ts +5 -0
- package/src/controller/ControlClasses/OcaControlNetwork.js +5 -0
- package/src/controller/ControlClasses/OcaFilterParametric.d.ts +4 -0
- package/src/controller/ControlClasses/OcaFilterParametric.js +5 -0
- package/src/controller/ControlClasses/OcaGrouper.d.ts +12 -0
- package/src/controller/ControlClasses/OcaGrouper.js +15 -0
- package/src/controller/ControlClasses/OcaMediaClockManager.d.ts +4 -0
- package/src/controller/ControlClasses/OcaMediaClockManager.js +5 -0
- package/src/controller/ControlClasses/OcaMediaTransportNetwork.d.ts +4 -0
- package/src/controller/ControlClasses/OcaMediaTransportNetwork.js +5 -0
- package/src/controller/ControlClasses/OcaNetworkSignalChannel.d.ts +68 -68
- package/src/controller/ControlClasses/OcaNetworkSignalChannel.js +72 -72
- package/src/controller/ControlClasses/OcaSecurityManager.d.ts +31 -31
- package/src/controller/ControlClasses/OcaSecurityManager.js +29 -29
- package/src/controller/ControlClasses/OcaStreamConnector.d.ts +70 -70
- package/src/controller/ControlClasses/OcaStreamConnector.js +80 -80
- package/src/controller/ControlClasses/OcaStreamNetwork.d.ts +18 -18
- package/src/controller/ControlClasses/OcaStreamNetwork.js +49 -49
- package/src/controller/ControlClasses/OcaSubscriptionManager.d.ts +13 -13
- package/src/controller/ControlClasses/OcaSubscriptionManager.js +12 -12
- package/src/controller/base_event.js +2 -2
- package/src/controller/client_connection.js +7 -3
- package/src/controller/fetch_device_content.js +8 -3
- package/src/controller/make_control_class.js +30 -4
- package/src/controller/object_base.d.ts +34 -0
- package/src/controller/tcp_connection.d.ts +8 -4
- package/src/controller/tcp_connection.js +23 -6
package/package.json
CHANGED
|
@@ -1,37 +1,49 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
let byteLength = this._byteLength;
|
|
1
|
+
function calculateByteLength(encoders, data) {
|
|
2
|
+
let byteLength = 0;
|
|
4
3
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
for (let i = 0; i < encoders.length; i++) {
|
|
5
|
+
byteLength += encoders[i].encodedLength(data[i]);
|
|
6
|
+
}
|
|
8
7
|
|
|
9
|
-
|
|
8
|
+
return byteLength;
|
|
9
|
+
}
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
11
|
+
function encode(encoders, data, byteLength) {
|
|
12
|
+
if (!byteLength) return null;
|
|
13
|
+
const result = new ArrayBuffer(byteLength);
|
|
14
|
+
const dataView = new DataView(result);
|
|
16
15
|
|
|
17
|
-
|
|
16
|
+
for (let i = 0, pos = 0; i < encoders.length; i++) {
|
|
17
|
+
pos = encoders[i].encodeTo(dataView, pos, data[i]);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
return result;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export class EncodedArguments {
|
|
20
24
|
constructor(encoders, data) {
|
|
21
25
|
this.encoders = encoders;
|
|
22
26
|
this.data = data;
|
|
23
|
-
this.
|
|
27
|
+
this.byteLength = calculateByteLength(encoders, data);
|
|
28
|
+
this.buffer = encode(encoders, data, this.byteLength);
|
|
24
29
|
}
|
|
25
30
|
|
|
26
31
|
encodeTo(dataView, pos) {
|
|
27
32
|
pos = pos | 0;
|
|
28
33
|
|
|
29
|
-
const {
|
|
34
|
+
const { byteLength, buffer } = this;
|
|
35
|
+
|
|
36
|
+
if (!byteLength) return pos;
|
|
37
|
+
|
|
38
|
+
const src = new Uint8Array(buffer);
|
|
39
|
+
const dst = new Uint8Array(
|
|
40
|
+
dataView.buffer,
|
|
41
|
+
dataView.byteOffset,
|
|
42
|
+
dataView.byteLength
|
|
43
|
+
);
|
|
30
44
|
|
|
31
|
-
|
|
32
|
-
pos = encoders[i].encodeTo(dataView, pos, data[i]);
|
|
33
|
-
}
|
|
45
|
+
dst.set(src, pos);
|
|
34
46
|
|
|
35
|
-
return pos;
|
|
47
|
+
return pos + byteLength;
|
|
36
48
|
}
|
|
37
49
|
}
|
package/src/connection.d.ts
CHANGED
|
@@ -61,6 +61,11 @@ export declare class Connection extends Events {
|
|
|
61
61
|
*/
|
|
62
62
|
close(): void;
|
|
63
63
|
|
|
64
|
+
/**
|
|
65
|
+
* Returns true if this connection has been closed.
|
|
66
|
+
*/
|
|
67
|
+
is_closed(): boolean;
|
|
68
|
+
|
|
64
69
|
/**
|
|
65
70
|
* Receive and handle some incoming data. This is usually called
|
|
66
71
|
* internally when data is received on e.g. a tcp socket.
|
|
@@ -257,39 +257,39 @@ export declare class OcaBlock extends OcaWorker {
|
|
|
257
257
|
): Promise<OcaObjectSearchResult[]>;
|
|
258
258
|
|
|
259
259
|
/**
|
|
260
|
-
* Returns
|
|
260
|
+
* Returns block member descriptors of all objects in the block and all
|
|
261
|
+
* contained blocks that match the given Label search string and Class ID.
|
|
261
262
|
* **Added in version 2 of this class.**
|
|
262
263
|
*
|
|
263
|
-
* @method OcaBlock#
|
|
264
|
-
* @param {string
|
|
264
|
+
* @method OcaBlock#FindObjectsByLabelRecursive
|
|
265
|
+
* @param {string} SearchName
|
|
266
|
+
* @param {IOcaStringComparisonType} NameComparisonType
|
|
267
|
+
* @param {string} SearchClassID
|
|
265
268
|
* @param {IOcaObjectSearchResultFlags} ResultFlags
|
|
266
269
|
*
|
|
267
270
|
* @returns {Promise<OcaObjectSearchResult[]>}
|
|
268
271
|
* A promise which resolves to a single value of type :class:`OcaObjectSearchResult[]`.
|
|
269
272
|
*/
|
|
270
|
-
|
|
271
|
-
|
|
273
|
+
FindObjectsByLabelRecursive(
|
|
274
|
+
SearchName: string,
|
|
275
|
+
NameComparisonType: IOcaStringComparisonType,
|
|
276
|
+
SearchClassID: string,
|
|
272
277
|
ResultFlags: IOcaObjectSearchResultFlags
|
|
273
278
|
): Promise<OcaObjectSearchResult[]>;
|
|
274
279
|
|
|
275
280
|
/**
|
|
276
|
-
* Returns
|
|
277
|
-
* contained blocks that match the given Label search string and Class ID.
|
|
281
|
+
* Returns object identifications of all objects with the given name path.
|
|
278
282
|
* **Added in version 2 of this class.**
|
|
279
283
|
*
|
|
280
|
-
* @method OcaBlock#
|
|
281
|
-
* @param {string}
|
|
282
|
-
* @param {IOcaStringComparisonType} NameComparisonType
|
|
283
|
-
* @param {string} SearchClassID
|
|
284
|
+
* @method OcaBlock#FindObjectsByPath
|
|
285
|
+
* @param {string[]} SearchPath
|
|
284
286
|
* @param {IOcaObjectSearchResultFlags} ResultFlags
|
|
285
287
|
*
|
|
286
288
|
* @returns {Promise<OcaObjectSearchResult[]>}
|
|
287
289
|
* A promise which resolves to a single value of type :class:`OcaObjectSearchResult[]`.
|
|
288
290
|
*/
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
NameComparisonType: IOcaStringComparisonType,
|
|
292
|
-
SearchClassID: string,
|
|
291
|
+
FindObjectsByPath(
|
|
292
|
+
SearchPath: string[],
|
|
293
293
|
ResultFlags: IOcaObjectSearchResultFlags
|
|
294
294
|
): Promise<OcaObjectSearchResult[]>;
|
|
295
295
|
}
|
|
@@ -73,13 +73,6 @@ export const OcaBlock = make_control_class(
|
|
|
73
73
|
],
|
|
74
74
|
[OcaList(OcaObjectSearchResult)],
|
|
75
75
|
],
|
|
76
|
-
[
|
|
77
|
-
'FindObjectsByPath',
|
|
78
|
-
3,
|
|
79
|
-
20,
|
|
80
|
-
[OcaList(OcaString), OcaObjectSearchResultFlags],
|
|
81
|
-
[OcaList(OcaObjectSearchResult)],
|
|
82
|
-
],
|
|
83
76
|
[
|
|
84
77
|
'FindObjectsByLabelRecursive',
|
|
85
78
|
3,
|
|
@@ -92,6 +85,13 @@ export const OcaBlock = make_control_class(
|
|
|
92
85
|
],
|
|
93
86
|
[OcaList(OcaObjectSearchResult)],
|
|
94
87
|
],
|
|
88
|
+
[
|
|
89
|
+
'FindObjectsByPath',
|
|
90
|
+
3,
|
|
91
|
+
20,
|
|
92
|
+
[OcaList(OcaString), OcaObjectSearchResultFlags],
|
|
93
|
+
[OcaList(OcaObjectSearchResult)],
|
|
94
|
+
],
|
|
95
95
|
],
|
|
96
96
|
[
|
|
97
97
|
['Type', [OcaUint32], 3, 1, true, false, null],
|
|
@@ -287,25 +287,25 @@ export const OcaBlock = make_control_class(
|
|
|
287
287
|
* A promise which resolves to a single value of type :class:`OcaObjectSearchResult[]`.
|
|
288
288
|
*/
|
|
289
289
|
/**
|
|
290
|
-
* Returns
|
|
290
|
+
* Returns block member descriptors of all objects in the block and all
|
|
291
|
+
* contained blocks that match the given Label search string and Class ID.
|
|
291
292
|
* **Added in version 2 of this class.**
|
|
292
293
|
*
|
|
293
|
-
* @method OcaBlock#
|
|
294
|
-
* @param {string
|
|
294
|
+
* @method OcaBlock#FindObjectsByLabelRecursive
|
|
295
|
+
* @param {string} SearchName
|
|
296
|
+
* @param {IOcaStringComparisonType} NameComparisonType
|
|
297
|
+
* @param {string} SearchClassID
|
|
295
298
|
* @param {IOcaObjectSearchResultFlags} ResultFlags
|
|
296
299
|
*
|
|
297
300
|
* @returns {Promise<OcaObjectSearchResult[]>}
|
|
298
301
|
* A promise which resolves to a single value of type :class:`OcaObjectSearchResult[]`.
|
|
299
302
|
*/
|
|
300
303
|
/**
|
|
301
|
-
* Returns
|
|
302
|
-
* contained blocks that match the given Label search string and Class ID.
|
|
304
|
+
* Returns object identifications of all objects with the given name path.
|
|
303
305
|
* **Added in version 2 of this class.**
|
|
304
306
|
*
|
|
305
|
-
* @method OcaBlock#
|
|
306
|
-
* @param {string}
|
|
307
|
-
* @param {IOcaStringComparisonType} NameComparisonType
|
|
308
|
-
* @param {string} SearchClassID
|
|
307
|
+
* @method OcaBlock#FindObjectsByPath
|
|
308
|
+
* @param {string[]} SearchPath
|
|
309
309
|
* @param {IOcaObjectSearchResultFlags} ResultFlags
|
|
310
310
|
*
|
|
311
311
|
* @returns {Promise<OcaObjectSearchResult[]>}
|
|
@@ -13,6 +13,11 @@ export declare class OcaControlNetwork extends OcaApplicationNetwork {
|
|
|
13
13
|
*/
|
|
14
14
|
OnProtocolChanged: PropertyEvent<OcaNetworkControlProtocol>;
|
|
15
15
|
|
|
16
|
+
/**
|
|
17
|
+
* An alias for OnProtocolChanged
|
|
18
|
+
*/
|
|
19
|
+
OnControlProtocolChanged: PropertyEvent<OcaNetworkControlProtocol>;
|
|
20
|
+
|
|
16
21
|
constructor(objectNumber: number, device: RemoteDevice);
|
|
17
22
|
|
|
18
23
|
/**
|
|
@@ -42,3 +42,8 @@ export const OcaControlNetwork = make_control_class(
|
|
|
42
42
|
*
|
|
43
43
|
* @member {PropertyEvent<OcaNetworkControlProtocol>} OcaControlNetwork#OnProtocolChanged
|
|
44
44
|
*/
|
|
45
|
+
/**
|
|
46
|
+
* An alias for OnProtocolChanged
|
|
47
|
+
*
|
|
48
|
+
* @member {PropertyEvent<OcaNetworkControlProtocol>} OcaControlNetwork#OnControlProtocolChanged
|
|
49
|
+
*/
|
|
@@ -29,6 +29,10 @@ export declare class OcaFilterParametric extends OcaActuator {
|
|
|
29
29
|
*/
|
|
30
30
|
OnWidthParameterChanged: PropertyEvent<number>;
|
|
31
31
|
|
|
32
|
+
/**
|
|
33
|
+
* An alias for OnWidthParameterChanged
|
|
34
|
+
*/
|
|
35
|
+
OnQChanged: PropertyEvent<number>;
|
|
32
36
|
/**
|
|
33
37
|
* This event is emitted whenever InbandGain changes.
|
|
34
38
|
*/
|
|
@@ -189,6 +189,11 @@ export const OcaFilterParametric = make_control_class(
|
|
|
189
189
|
*
|
|
190
190
|
* @member {PropertyEvent<number>} OcaFilterParametric#OnWidthParameterChanged
|
|
191
191
|
*/
|
|
192
|
+
/**
|
|
193
|
+
* An alias for OnWidthParameterChanged
|
|
194
|
+
*
|
|
195
|
+
* @member {PropertyEvent<number>} OcaFilterParametric#OnQChanged
|
|
196
|
+
*/
|
|
192
197
|
/**
|
|
193
198
|
* This event is emitted when the property ``InbandGain`` changes in the remote object.
|
|
194
199
|
* The property ``InbandGain`` is described in the AES70 standard as follows.
|
|
@@ -147,16 +147,28 @@ export declare class OcaGrouper extends OcaAgent {
|
|
|
147
147
|
*/
|
|
148
148
|
OnGroupsChanged: PropertyEvent<OcaGrouperGroup[]>;
|
|
149
149
|
|
|
150
|
+
/**
|
|
151
|
+
* An alias for OnGroupsChanged
|
|
152
|
+
*/
|
|
153
|
+
OnGroupListChanged: PropertyEvent<OcaGrouperGroup[]>;
|
|
150
154
|
/**
|
|
151
155
|
* This event is emitted whenever Citizens changes.
|
|
152
156
|
*/
|
|
153
157
|
OnCitizensChanged: PropertyEvent<OcaGrouperCitizen[]>;
|
|
154
158
|
|
|
159
|
+
/**
|
|
160
|
+
* An alias for OnCitizensChanged
|
|
161
|
+
*/
|
|
162
|
+
OnCitizenListChanged: PropertyEvent<OcaGrouperCitizen[]>;
|
|
155
163
|
/**
|
|
156
164
|
* This event is emitted whenever Enrollments changes.
|
|
157
165
|
*/
|
|
158
166
|
OnEnrollmentsChanged: PropertyEvent<OcaGrouperEnrollment[]>;
|
|
159
167
|
|
|
168
|
+
/**
|
|
169
|
+
* An alias for OnEnrollmentsChanged
|
|
170
|
+
*/
|
|
171
|
+
OnEnrollmentListChanged: PropertyEvent<OcaGrouperEnrollment[]>;
|
|
160
172
|
/**
|
|
161
173
|
* This event is emitted whenever Mode changes.
|
|
162
174
|
*/
|
|
@@ -339,6 +339,11 @@ export const OcaGrouper = make_control_class(
|
|
|
339
339
|
*
|
|
340
340
|
* @member {PropertyEvent<OcaGrouperGroup[]>} OcaGrouper#OnGroupsChanged
|
|
341
341
|
*/
|
|
342
|
+
/**
|
|
343
|
+
* An alias for OnGroupsChanged
|
|
344
|
+
*
|
|
345
|
+
* @member {PropertyEvent<OcaGrouperGroup[]>} OcaGrouper#OnGroupListChanged
|
|
346
|
+
*/
|
|
342
347
|
/**
|
|
343
348
|
* This event is emitted when the property ``Citizens`` changes in the remote object.
|
|
344
349
|
* The property ``Citizens`` is described in the AES70 standard as follows.
|
|
@@ -346,6 +351,11 @@ export const OcaGrouper = make_control_class(
|
|
|
346
351
|
*
|
|
347
352
|
* @member {PropertyEvent<OcaGrouperCitizen[]>} OcaGrouper#OnCitizensChanged
|
|
348
353
|
*/
|
|
354
|
+
/**
|
|
355
|
+
* An alias for OnCitizensChanged
|
|
356
|
+
*
|
|
357
|
+
* @member {PropertyEvent<OcaGrouperCitizen[]>} OcaGrouper#OnCitizenListChanged
|
|
358
|
+
*/
|
|
349
359
|
/**
|
|
350
360
|
* This event is emitted when the property ``Enrollments`` changes in the remote object.
|
|
351
361
|
* The property ``Enrollments`` is described in the AES70 standard as follows.
|
|
@@ -354,6 +364,11 @@ export const OcaGrouper = make_control_class(
|
|
|
354
364
|
*
|
|
355
365
|
* @member {PropertyEvent<OcaGrouperEnrollment[]>} OcaGrouper#OnEnrollmentsChanged
|
|
356
366
|
*/
|
|
367
|
+
/**
|
|
368
|
+
* An alias for OnEnrollmentsChanged
|
|
369
|
+
*
|
|
370
|
+
* @member {PropertyEvent<OcaGrouperEnrollment[]>} OcaGrouper#OnEnrollmentListChanged
|
|
371
|
+
*/
|
|
357
372
|
/**
|
|
358
373
|
* This event is emitted when the property ``Mode`` changes in the remote object.
|
|
359
374
|
* The property ``Mode`` is described in the AES70 standard as follows.
|
|
@@ -22,6 +22,10 @@ export declare class OcaMediaClockManager extends OcaManager {
|
|
|
22
22
|
*/
|
|
23
23
|
OnClockSourceTypesSupportedChanged: PropertyEvent<OcaMediaClockType[]>;
|
|
24
24
|
|
|
25
|
+
/**
|
|
26
|
+
* An alias for OnClockSourceTypesSupportedChanged
|
|
27
|
+
*/
|
|
28
|
+
OnMediaClockTypesSupportedChanged: PropertyEvent<OcaMediaClockType[]>;
|
|
25
29
|
/**
|
|
26
30
|
* This event is emitted whenever Clocks changes.
|
|
27
31
|
*/
|
|
@@ -82,6 +82,11 @@ export const OcaMediaClockManager = make_control_class(
|
|
|
82
82
|
*
|
|
83
83
|
* @member {PropertyEvent<OcaMediaClockType[]>} OcaMediaClockManager#OnClockSourceTypesSupportedChanged
|
|
84
84
|
*/
|
|
85
|
+
/**
|
|
86
|
+
* An alias for OnClockSourceTypesSupportedChanged
|
|
87
|
+
*
|
|
88
|
+
* @member {PropertyEvent<OcaMediaClockType[]>} OcaMediaClockManager#OnMediaClockTypesSupportedChanged
|
|
89
|
+
*/
|
|
85
90
|
/**
|
|
86
91
|
* This event is emitted when the property ``Clocks`` changes in the remote object.
|
|
87
92
|
* The property ``Clocks`` is described in the AES70 standard as follows.
|
|
@@ -52,6 +52,10 @@ export declare class OcaMediaTransportNetwork extends OcaApplicationNetwork {
|
|
|
52
52
|
*/
|
|
53
53
|
OnProtocolChanged: PropertyEvent<OcaNetworkMediaProtocol>;
|
|
54
54
|
|
|
55
|
+
/**
|
|
56
|
+
* An alias for OnProtocolChanged
|
|
57
|
+
*/
|
|
58
|
+
OnMediaProtocolChanged: PropertyEvent<OcaNetworkMediaProtocol>;
|
|
55
59
|
/**
|
|
56
60
|
* This event is emitted whenever Ports changes.
|
|
57
61
|
*/
|
|
@@ -390,6 +390,11 @@ export const OcaMediaTransportNetwork = make_control_class(
|
|
|
390
390
|
*
|
|
391
391
|
* @member {PropertyEvent<OcaNetworkMediaProtocol>} OcaMediaTransportNetwork#OnProtocolChanged
|
|
392
392
|
*/
|
|
393
|
+
/**
|
|
394
|
+
* An alias for OnProtocolChanged
|
|
395
|
+
*
|
|
396
|
+
* @member {PropertyEvent<OcaNetworkMediaProtocol>} OcaMediaTransportNetwork#OnMediaProtocolChanged
|
|
397
|
+
*/
|
|
393
398
|
/**
|
|
394
399
|
* This event is emitted when the property ``Ports`` changes in the remote object.
|
|
395
400
|
* The property ``Ports`` is described in the AES70 standard as follows.
|
|
@@ -23,11 +23,6 @@ import { OcaWorker } from './OcaWorker';
|
|
|
23
23
|
* @class OcaNetworkSignalChannel
|
|
24
24
|
*/
|
|
25
25
|
export declare class OcaNetworkSignalChannel extends OcaWorker {
|
|
26
|
-
/**
|
|
27
|
-
* This event is emitted whenever ConnectorPins changes.
|
|
28
|
-
*/
|
|
29
|
-
OnConnectorPinsChanged: PropertyEvent<Map<number, number>>;
|
|
30
|
-
|
|
31
26
|
/**
|
|
32
27
|
* This event is emitted whenever IDAdvertised changes.
|
|
33
28
|
*/
|
|
@@ -38,6 +33,11 @@ export declare class OcaNetworkSignalChannel extends OcaWorker {
|
|
|
38
33
|
*/
|
|
39
34
|
OnNetworkChanged: PropertyEvent<number>;
|
|
40
35
|
|
|
36
|
+
/**
|
|
37
|
+
* This event is emitted whenever ConnectorPins changes.
|
|
38
|
+
*/
|
|
39
|
+
OnConnectorPinsChanged: PropertyEvent<Map<number, number>>;
|
|
40
|
+
|
|
41
41
|
/**
|
|
42
42
|
* This event is emitted whenever RemoteChannelID changes.
|
|
43
43
|
*/
|
|
@@ -55,30 +55,6 @@ export declare class OcaNetworkSignalChannel extends OcaWorker {
|
|
|
55
55
|
|
|
56
56
|
constructor(objectNumber: number, device: RemoteDevice);
|
|
57
57
|
|
|
58
|
-
/**
|
|
59
|
-
* Adds the object number of the stream connector object to which this media
|
|
60
|
-
* port belongs, and specifies on what index of the stream connector this
|
|
61
|
-
* channel can be found. Return status indicates success of operation.
|
|
62
|
-
*
|
|
63
|
-
* @method OcaNetworkSignalChannel#AddToConnector
|
|
64
|
-
* @param {number} Connector
|
|
65
|
-
* @param {number} Index
|
|
66
|
-
*
|
|
67
|
-
* @returns {Promise<void>}
|
|
68
|
-
*/
|
|
69
|
-
AddToConnector(Connector: number, Index: number): Promise<void>;
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* Gets the object number of the stream connector object to which this media
|
|
73
|
-
* port belongs, if any. If port does not belong to a stream connector,
|
|
74
|
-
* returns zero. Return status indicates success of operation.
|
|
75
|
-
*
|
|
76
|
-
* @method OcaNetworkSignalChannel#GetConnectorPins
|
|
77
|
-
* @returns {Promise<Map<number, number>>}
|
|
78
|
-
* A promise which resolves to a single value of type ``Map<number, number>``.
|
|
79
|
-
*/
|
|
80
|
-
GetConnectorPins(): Promise<Map<number, number>>;
|
|
81
|
-
|
|
82
58
|
/**
|
|
83
59
|
* Gets the value of the IDAdvertised property. Return status indicates
|
|
84
60
|
* success of operation.
|
|
@@ -89,6 +65,17 @@ export declare class OcaNetworkSignalChannel extends OcaWorker {
|
|
|
89
65
|
*/
|
|
90
66
|
GetIDAdvertised(): Promise<Uint8Array>;
|
|
91
67
|
|
|
68
|
+
/**
|
|
69
|
+
* Sets the value of the IDAdvertised property. Return status indicates
|
|
70
|
+
* success of operation.
|
|
71
|
+
*
|
|
72
|
+
* @method OcaNetworkSignalChannel#SetIDAdvertised
|
|
73
|
+
* @param {Uint8Array} IDAdvertised
|
|
74
|
+
*
|
|
75
|
+
* @returns {Promise<void>}
|
|
76
|
+
*/
|
|
77
|
+
SetIDAdvertised(IDAdvertised: Uint8Array): Promise<void>;
|
|
78
|
+
|
|
92
79
|
/**
|
|
93
80
|
* Gets the object number of the stream network object to which this media
|
|
94
81
|
* port belongs. Return status indicates success of operation.
|
|
@@ -100,36 +87,40 @@ export declare class OcaNetworkSignalChannel extends OcaWorker {
|
|
|
100
87
|
GetNetwork(): Promise<number>;
|
|
101
88
|
|
|
102
89
|
/**
|
|
103
|
-
*
|
|
104
|
-
*
|
|
105
|
-
*
|
|
106
|
-
* the remote channel ID will always be empty).
|
|
90
|
+
* Sets the object number of the stream network object to which this media
|
|
91
|
+
* port belongs. Return status indicates success of operation. Only
|
|
92
|
+
* implemented for reconfigurable devices.
|
|
107
93
|
*
|
|
108
|
-
* @method OcaNetworkSignalChannel#
|
|
109
|
-
* @
|
|
110
|
-
*
|
|
94
|
+
* @method OcaNetworkSignalChannel#SetNetwork
|
|
95
|
+
* @param {number} Network
|
|
96
|
+
*
|
|
97
|
+
* @returns {Promise<void>}
|
|
111
98
|
*/
|
|
112
|
-
|
|
99
|
+
SetNetwork(Network: number): Promise<void>;
|
|
113
100
|
|
|
114
101
|
/**
|
|
115
|
-
* Gets the
|
|
116
|
-
*
|
|
102
|
+
* Gets the object number of the stream connector object to which this media
|
|
103
|
+
* port belongs, if any. If port does not belong to a stream connector,
|
|
104
|
+
* returns zero. Return status indicates success of operation.
|
|
117
105
|
*
|
|
118
|
-
* @method OcaNetworkSignalChannel#
|
|
119
|
-
* @returns {Promise<
|
|
120
|
-
* A promise which resolves to a single value of type
|
|
106
|
+
* @method OcaNetworkSignalChannel#GetConnectorPins
|
|
107
|
+
* @returns {Promise<Map<number, number>>}
|
|
108
|
+
* A promise which resolves to a single value of type ``Map<number, number>``.
|
|
121
109
|
*/
|
|
122
|
-
|
|
110
|
+
GetConnectorPins(): Promise<Map<number, number>>;
|
|
123
111
|
|
|
124
112
|
/**
|
|
125
|
-
*
|
|
126
|
-
*
|
|
113
|
+
* Adds the object number of the stream connector object to which this media
|
|
114
|
+
* port belongs, and specifies on what index of the stream connector this
|
|
115
|
+
* channel can be found. Return status indicates success of operation.
|
|
127
116
|
*
|
|
128
|
-
* @method OcaNetworkSignalChannel#
|
|
129
|
-
* @
|
|
130
|
-
*
|
|
117
|
+
* @method OcaNetworkSignalChannel#AddToConnector
|
|
118
|
+
* @param {number} Connector
|
|
119
|
+
* @param {number} Index
|
|
120
|
+
*
|
|
121
|
+
* @returns {Promise<void>}
|
|
131
122
|
*/
|
|
132
|
-
|
|
123
|
+
AddToConnector(Connector: number, Index: number): Promise<void>;
|
|
133
124
|
|
|
134
125
|
/**
|
|
135
126
|
* Removes this channel from the passed stream connector. Return status
|
|
@@ -143,27 +134,16 @@ export declare class OcaNetworkSignalChannel extends OcaWorker {
|
|
|
143
134
|
RemoveFromConnector(Connector: number): Promise<void>;
|
|
144
135
|
|
|
145
136
|
/**
|
|
146
|
-
*
|
|
147
|
-
*
|
|
148
|
-
*
|
|
149
|
-
*
|
|
150
|
-
* @param {Uint8Array} IDAdvertised
|
|
151
|
-
*
|
|
152
|
-
* @returns {Promise<void>}
|
|
153
|
-
*/
|
|
154
|
-
SetIDAdvertised(IDAdvertised: Uint8Array): Promise<void>;
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* Sets the object number of the stream network object to which this media
|
|
158
|
-
* port belongs. Return status indicates success of operation. Only
|
|
159
|
-
* implemented for reconfigurable devices.
|
|
160
|
-
*
|
|
161
|
-
* @method OcaNetworkSignalChannel#SetNetwork
|
|
162
|
-
* @param {number} Network
|
|
137
|
+
* Gets the remote channel ID to which this channel is connected. Empty if the
|
|
138
|
+
* channel is not connected (at least not directly to another channel). For
|
|
139
|
+
* stream-oriented connection management this functionality is not used (i.e.
|
|
140
|
+
* the remote channel ID will always be empty).
|
|
163
141
|
*
|
|
164
|
-
* @
|
|
142
|
+
* @method OcaNetworkSignalChannel#GetRemoteChannelID
|
|
143
|
+
* @returns {Promise<Uint8Array>}
|
|
144
|
+
* A promise which resolves to a single value of type ``Uint8Array``.
|
|
165
145
|
*/
|
|
166
|
-
|
|
146
|
+
GetRemoteChannelID(): Promise<Uint8Array>;
|
|
167
147
|
|
|
168
148
|
/**
|
|
169
149
|
* Sets the remote channel ID to which this channel must be connected. Only
|
|
@@ -178,4 +158,24 @@ export declare class OcaNetworkSignalChannel extends OcaWorker {
|
|
|
178
158
|
* @returns {Promise<void>}
|
|
179
159
|
*/
|
|
180
160
|
SetRemoteChannelID(RemoteChannelID: Uint8Array): Promise<void>;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Gets the value of the SourceOrSink property. Return status indicates
|
|
164
|
+
* success of operation.
|
|
165
|
+
*
|
|
166
|
+
* @method OcaNetworkSignalChannel#GetSourceOrSink
|
|
167
|
+
* @returns {Promise<OcaNetworkMediaSourceOrSink>}
|
|
168
|
+
* A promise which resolves to a single value of type :class:`OcaNetworkMediaSourceOrSink`.
|
|
169
|
+
*/
|
|
170
|
+
GetSourceOrSink(): Promise<OcaNetworkMediaSourceOrSink>;
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Gets the value of the Status property. Return status indicates success of
|
|
174
|
+
* operation.
|
|
175
|
+
*
|
|
176
|
+
* @method OcaNetworkSignalChannel#GetStatus
|
|
177
|
+
* @returns {Promise<OcaNetworkSignalChannelStatus>}
|
|
178
|
+
* A promise which resolves to a single value of type :class:`OcaNetworkSignalChannelStatus`.
|
|
179
|
+
*/
|
|
180
|
+
GetStatus(): Promise<OcaNetworkSignalChannelStatus>;
|
|
181
181
|
}
|