mediasoup 3.13.7 → 3.13.8

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.
Files changed (69) hide show
  1. package/node/lib/fbs/message-from-worker/body.d.ts +12 -0
  2. package/node/lib/fbs/message-from-worker/body.d.ts.map +1 -0
  3. package/node/lib/fbs/message-from-worker/body.js +34 -0
  4. package/node/lib/fbs/message-from-worker/message.d.ts +30 -0
  5. package/node/lib/fbs/message-from-worker/message.d.ts.map +1 -0
  6. package/node/lib/fbs/message-from-worker/message.js +89 -0
  7. package/node/lib/fbs/message-from-worker.d.ts +3 -0
  8. package/node/lib/fbs/message-from-worker.d.ts.map +1 -0
  9. package/node/lib/fbs/message-from-worker.js +9 -0
  10. package/node/lib/fbs/message-to-worker/body.d.ts +10 -0
  11. package/node/lib/fbs/message-to-worker/body.d.ts.map +1 -0
  12. package/node/lib/fbs/message-to-worker/body.js +30 -0
  13. package/node/lib/fbs/message-to-worker/message.d.ts +29 -0
  14. package/node/lib/fbs/message-to-worker/message.d.ts.map +1 -0
  15. package/node/lib/fbs/message-to-worker/message.js +89 -0
  16. package/node/lib/fbs/message-to-worker.d.ts +3 -0
  17. package/node/lib/fbs/message-to-worker.d.ts.map +1 -0
  18. package/node/lib/fbs/message-to-worker.js +9 -0
  19. package/node/lib/fbs/notification-from-worker/body.d.ts +44 -0
  20. package/node/lib/fbs/notification-from-worker/body.d.ts.map +1 -0
  21. package/node/lib/fbs/notification-from-worker/body.js +98 -0
  22. package/node/lib/fbs/notification-from-worker/event.d.ts +31 -0
  23. package/node/lib/fbs/notification-from-worker/event.d.ts.map +1 -0
  24. package/node/lib/fbs/notification-from-worker/event.js +35 -0
  25. package/node/lib/fbs/notification-from-worker/notification.d.ts +52 -0
  26. package/node/lib/fbs/notification-from-worker/notification.d.ts.map +1 -0
  27. package/node/lib/fbs/notification-from-worker/notification.js +107 -0
  28. package/node/lib/fbs/notification-from-worker.d.ts +4 -0
  29. package/node/lib/fbs/notification-from-worker.d.ts.map +1 -0
  30. package/node/lib/fbs/notification-from-worker.js +11 -0
  31. package/node/lib/fbs/notification-to-worker/body.d.ts +12 -0
  32. package/node/lib/fbs/notification-to-worker/body.d.ts.map +1 -0
  33. package/node/lib/fbs/notification-to-worker/body.js +34 -0
  34. package/node/lib/fbs/notification-to-worker/event.d.ts +6 -0
  35. package/node/lib/fbs/notification-to-worker/event.d.ts.map +1 -0
  36. package/node/lib/fbs/notification-to-worker/event.js +10 -0
  37. package/node/lib/fbs/notification-to-worker/notification.d.ts +36 -0
  38. package/node/lib/fbs/notification-to-worker/notification.d.ts.map +1 -0
  39. package/node/lib/fbs/notification-to-worker/notification.js +107 -0
  40. package/node/lib/fbs/notification-to-worker.d.ts +4 -0
  41. package/node/lib/fbs/notification-to-worker.d.ts.map +1 -0
  42. package/node/lib/fbs/notification-to-worker.js +11 -0
  43. package/node/lib/fbs/trace-events/fir-trace-info.d.ts +21 -0
  44. package/node/lib/fbs/trace-events/fir-trace-info.d.ts.map +1 -0
  45. package/node/lib/fbs/trace-events/fir-trace-info.js +57 -0
  46. package/node/lib/fbs/trace-events/key-frame-trace-info.d.ts +25 -0
  47. package/node/lib/fbs/trace-events/key-frame-trace-info.d.ts.map +1 -0
  48. package/node/lib/fbs/trace-events/key-frame-trace-info.js +71 -0
  49. package/node/lib/fbs/trace-events/pli-trace-info.d.ts +21 -0
  50. package/node/lib/fbs/trace-events/pli-trace-info.d.ts.map +1 -0
  51. package/node/lib/fbs/trace-events/pli-trace-info.js +57 -0
  52. package/node/lib/fbs/trace-events/rtp-trace-info.d.ts +25 -0
  53. package/node/lib/fbs/trace-events/rtp-trace-info.d.ts.map +1 -0
  54. package/node/lib/fbs/trace-events/rtp-trace-info.js +71 -0
  55. package/node/lib/fbs/trace-events/trace-event-type.d.ts +8 -0
  56. package/node/lib/fbs/trace-events/trace-event-type.d.ts.map +1 -0
  57. package/node/lib/fbs/trace-events/trace-event-type.js +12 -0
  58. package/node/lib/fbs/trace-events/trace-info.d.ts +14 -0
  59. package/node/lib/fbs/trace-events/trace-info.d.ts.map +1 -0
  60. package/node/lib/fbs/trace-events/trace-info.js +38 -0
  61. package/node/lib/fbs/trace-events.d.ts +7 -0
  62. package/node/lib/fbs/trace-events.d.ts.map +1 -0
  63. package/node/lib/fbs/trace-events.js +20 -0
  64. package/package.json +5 -4
  65. package/worker/meson.build +1 -1
  66. package/worker/meson_options.txt +1 -0
  67. package/worker/src/DepUsrSCTP.cpp +17 -0
  68. package/worker/src/RTC/Router.cpp +17 -2
  69. package/worker/scripts/package-lock.json +0 -2827
@@ -0,0 +1,12 @@
1
+ import { Log } from '../../fbs/log/log';
2
+ import { Notification } from '../../fbs/notification-from-worker/notification';
3
+ import { Response } from '../../fbs/response/response';
4
+ export declare enum Body {
5
+ NONE = 0,
6
+ Response = 1,
7
+ Notification = 2,
8
+ Log = 3
9
+ }
10
+ export declare function unionToBody(type: Body, accessor: (obj: Log | Notification | Response) => Log | Notification | Response | null): Log | Notification | Response | null;
11
+ export declare function unionListToBody(type: Body, accessor: (index: number, obj: Log | Notification | Response) => Log | Notification | Response | null, index: number): Log | Notification | Response | null;
12
+ //# sourceMappingURL=body.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"body.d.ts","sourceRoot":"","sources":["../../../src/fbs/message-from-worker/body.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,GAAG,EAAQ,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAiB,MAAM,iDAAiD,CAAC;AAC9F,OAAO,EAAE,QAAQ,EAAa,MAAM,6BAA6B,CAAC;AAGlE,oBAAY,IAAI;IACd,IAAI,IAAI;IACR,QAAQ,IAAI;IACZ,YAAY,IAAI;IAChB,GAAG,IAAI;CACR;AAED,wBAAgB,WAAW,CACzB,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,CAAC,GAAG,EAAC,GAAG,GAAC,YAAY,GAAC,QAAQ,KAAK,GAAG,GAAC,YAAY,GAAC,QAAQ,GAAC,IAAI,GAC1E,GAAG,GAAC,YAAY,GAAC,QAAQ,GAAC,IAAI,CAQhC;AAED,wBAAgB,eAAe,CAC7B,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAC,GAAG,GAAC,YAAY,GAAC,QAAQ,KAAK,GAAG,GAAC,YAAY,GAAC,QAAQ,GAAC,IAAI,EAC1F,KAAK,EAAE,MAAM,GACZ,GAAG,GAAC,YAAY,GAAC,QAAQ,GAAC,IAAI,CAQhC"}
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ // automatically generated by the FlatBuffers compiler, do not modify
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.unionListToBody = exports.unionToBody = exports.Body = void 0;
5
+ const log_1 = require("../../fbs/log/log");
6
+ const notification_1 = require("../../fbs/notification-from-worker/notification");
7
+ const response_1 = require("../../fbs/response/response");
8
+ var Body;
9
+ (function (Body) {
10
+ Body[Body["NONE"] = 0] = "NONE";
11
+ Body[Body["Response"] = 1] = "Response";
12
+ Body[Body["Notification"] = 2] = "Notification";
13
+ Body[Body["Log"] = 3] = "Log";
14
+ })(Body || (exports.Body = Body = {}));
15
+ function unionToBody(type, accessor) {
16
+ switch (Body[type]) {
17
+ case 'NONE': return null;
18
+ case 'Response': return accessor(new response_1.Response());
19
+ case 'Notification': return accessor(new notification_1.Notification());
20
+ case 'Log': return accessor(new log_1.Log());
21
+ default: return null;
22
+ }
23
+ }
24
+ exports.unionToBody = unionToBody;
25
+ function unionListToBody(type, accessor, index) {
26
+ switch (Body[type]) {
27
+ case 'NONE': return null;
28
+ case 'Response': return accessor(index, new response_1.Response());
29
+ case 'Notification': return accessor(index, new notification_1.Notification());
30
+ case 'Log': return accessor(index, new log_1.Log());
31
+ default: return null;
32
+ }
33
+ }
34
+ exports.unionListToBody = unionListToBody;
@@ -0,0 +1,30 @@
1
+ import * as flatbuffers from 'flatbuffers';
2
+ import { LogT } from '../../fbs/log/log';
3
+ import { Body } from '../../fbs/message-from-worker/body';
4
+ import { NotificationT } from '../../fbs/notification-from-worker/notification';
5
+ import { ResponseT } from '../../fbs/response/response';
6
+ export declare class Message implements flatbuffers.IUnpackableObject<MessageT> {
7
+ bb: flatbuffers.ByteBuffer | null;
8
+ bb_pos: number;
9
+ __init(i: number, bb: flatbuffers.ByteBuffer): Message;
10
+ static getRootAsMessage(bb: flatbuffers.ByteBuffer, obj?: Message): Message;
11
+ static getSizePrefixedRootAsMessage(bb: flatbuffers.ByteBuffer, obj?: Message): Message;
12
+ dataType(): Body;
13
+ data<T extends flatbuffers.Table>(obj: any): any | null;
14
+ static startMessage(builder: flatbuffers.Builder): void;
15
+ static addDataType(builder: flatbuffers.Builder, dataType: Body): void;
16
+ static addData(builder: flatbuffers.Builder, dataOffset: flatbuffers.Offset): void;
17
+ static endMessage(builder: flatbuffers.Builder): flatbuffers.Offset;
18
+ static finishMessageBuffer(builder: flatbuffers.Builder, offset: flatbuffers.Offset): void;
19
+ static finishSizePrefixedMessageBuffer(builder: flatbuffers.Builder, offset: flatbuffers.Offset): void;
20
+ static createMessage(builder: flatbuffers.Builder, dataType: Body, dataOffset: flatbuffers.Offset): flatbuffers.Offset;
21
+ unpack(): MessageT;
22
+ unpackTo(_o: MessageT): void;
23
+ }
24
+ export declare class MessageT implements flatbuffers.IGeneratedObject {
25
+ dataType: Body;
26
+ data: LogT | NotificationT | ResponseT | null;
27
+ constructor(dataType?: Body, data?: LogT | NotificationT | ResponseT | null);
28
+ pack(builder: flatbuffers.Builder): flatbuffers.Offset;
29
+ }
30
+ //# sourceMappingURL=message.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../../src/fbs/message-from-worker/message.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,WAAW,MAAM,aAAa,CAAC;AAE3C,OAAO,EAAO,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,IAA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AM,CAAC,aAAa,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,EAAE,QAAQ,EAAC,IAAI,EAAE,UAAU,EAAC,WAAW,CAAC,MAAM,GAAE,WAAW,CAAC,MAAM;IAOlH,MAAM,IAAI,QAAQ;IAYlB,QAAQ,CAAC,EAAE,EAAE,QAAQ,GAAG,IAAI;CAQ3B;AAED,qBAAa,QAAS,YAAW,WAAW,CAAC,gBAAgB;IAEpD,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE,IAAI,GAAC,aAAa,GAAC,SAAS,GAAC,IAAI;gBADvC,QAAQ,GAAE,IAAgB,EAC1B,IAAI,GAAE,IAAI,GAAC,aAAa,GAAC,SAAS,GAAC,IAAW;IAIvD,IAAI,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,MAAM;CAQpD"}
@@ -0,0 +1,89 @@
1
+ "use strict";
2
+ // automatically generated by the FlatBuffers compiler, do not modify
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.MessageT = exports.Message = void 0;
5
+ const flatbuffers = require("flatbuffers");
6
+ const body_1 = require("../../fbs/message-from-worker/body");
7
+ class Message {
8
+ bb = null;
9
+ bb_pos = 0;
10
+ __init(i, bb) {
11
+ this.bb_pos = i;
12
+ this.bb = bb;
13
+ return this;
14
+ }
15
+ static getRootAsMessage(bb, obj) {
16
+ return (obj || new Message()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
17
+ }
18
+ static getSizePrefixedRootAsMessage(bb, obj) {
19
+ bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
20
+ return (obj || new Message()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
21
+ }
22
+ dataType() {
23
+ const offset = this.bb.__offset(this.bb_pos, 4);
24
+ return offset ? this.bb.readUint8(this.bb_pos + offset) : body_1.Body.NONE;
25
+ }
26
+ data(obj) {
27
+ const offset = this.bb.__offset(this.bb_pos, 6);
28
+ return offset ? this.bb.__union(obj, this.bb_pos + offset) : null;
29
+ }
30
+ static startMessage(builder) {
31
+ builder.startObject(2);
32
+ }
33
+ static addDataType(builder, dataType) {
34
+ builder.addFieldInt8(0, dataType, body_1.Body.NONE);
35
+ }
36
+ static addData(builder, dataOffset) {
37
+ builder.addFieldOffset(1, dataOffset, 0);
38
+ }
39
+ static endMessage(builder) {
40
+ const offset = builder.endObject();
41
+ builder.requiredField(offset, 6); // data
42
+ return offset;
43
+ }
44
+ static finishMessageBuffer(builder, offset) {
45
+ builder.finish(offset);
46
+ }
47
+ static finishSizePrefixedMessageBuffer(builder, offset) {
48
+ builder.finish(offset, undefined, true);
49
+ }
50
+ static createMessage(builder, dataType, dataOffset) {
51
+ Message.startMessage(builder);
52
+ Message.addDataType(builder, dataType);
53
+ Message.addData(builder, dataOffset);
54
+ return Message.endMessage(builder);
55
+ }
56
+ unpack() {
57
+ return new MessageT(this.dataType(), (() => {
58
+ const temp = (0, body_1.unionToBody)(this.dataType(), this.data.bind(this));
59
+ if (temp === null) {
60
+ return null;
61
+ }
62
+ return temp.unpack();
63
+ })());
64
+ }
65
+ unpackTo(_o) {
66
+ _o.dataType = this.dataType();
67
+ _o.data = (() => {
68
+ const temp = (0, body_1.unionToBody)(this.dataType(), this.data.bind(this));
69
+ if (temp === null) {
70
+ return null;
71
+ }
72
+ return temp.unpack();
73
+ })();
74
+ }
75
+ }
76
+ exports.Message = Message;
77
+ class MessageT {
78
+ dataType;
79
+ data;
80
+ constructor(dataType = body_1.Body.NONE, data = null) {
81
+ this.dataType = dataType;
82
+ this.data = data;
83
+ }
84
+ pack(builder) {
85
+ const data = builder.createObjectOffset(this.data);
86
+ return Message.createMessage(builder, this.dataType, data);
87
+ }
88
+ }
89
+ exports.MessageT = MessageT;
@@ -0,0 +1,3 @@
1
+ export { Body } from './message-from-worker/body';
2
+ export { Message, MessageT } from './message-from-worker/message';
3
+ //# sourceMappingURL=message-from-worker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"message-from-worker.d.ts","sourceRoot":"","sources":["../../src/fbs/message-from-worker.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ // automatically generated by the FlatBuffers compiler, do not modify
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.MessageT = exports.Message = exports.Body = void 0;
5
+ var body_1 = require("./message-from-worker/body");
6
+ Object.defineProperty(exports, "Body", { enumerable: true, get: function () { return body_1.Body; } });
7
+ var message_1 = require("./message-from-worker/message");
8
+ Object.defineProperty(exports, "Message", { enumerable: true, get: function () { return message_1.Message; } });
9
+ Object.defineProperty(exports, "MessageT", { enumerable: true, get: function () { return message_1.MessageT; } });
@@ -0,0 +1,10 @@
1
+ import { Notification } from '../../fbs/notification-to-worker/notification';
2
+ import { Request } from '../../fbs/request/request';
3
+ export declare enum Body {
4
+ NONE = 0,
5
+ Request = 1,
6
+ Notification = 2
7
+ }
8
+ export declare function unionToBody(type: Body, accessor: (obj: Notification | Request) => Notification | Request | null): Notification | Request | null;
9
+ export declare function unionListToBody(type: Body, accessor: (index: number, obj: Notification | Request) => Notification | Request | null, index: number): Notification | Request | null;
10
+ //# sourceMappingURL=body.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"body.d.ts","sourceRoot":"","sources":["../../../src/fbs/message-to-worker/body.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAiB,MAAM,+CAA+C,CAAC;AAC5F,OAAO,EAAE,OAAO,EAAY,MAAM,2BAA2B,CAAC;AAG9D,oBAAY,IAAI;IACd,IAAI,IAAI;IACR,OAAO,IAAI;IACX,YAAY,IAAI;CACjB;AAED,wBAAgB,WAAW,CACzB,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,CAAC,GAAG,EAAC,YAAY,GAAC,OAAO,KAAK,YAAY,GAAC,OAAO,GAAC,IAAI,GAChE,YAAY,GAAC,OAAO,GAAC,IAAI,CAO3B;AAED,wBAAgB,eAAe,CAC7B,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAC,YAAY,GAAC,OAAO,KAAK,YAAY,GAAC,OAAO,GAAC,IAAI,EAChF,KAAK,EAAE,MAAM,GACZ,YAAY,GAAC,OAAO,GAAC,IAAI,CAO3B"}
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ // automatically generated by the FlatBuffers compiler, do not modify
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.unionListToBody = exports.unionToBody = exports.Body = void 0;
5
+ const notification_1 = require("../../fbs/notification-to-worker/notification");
6
+ const request_1 = require("../../fbs/request/request");
7
+ var Body;
8
+ (function (Body) {
9
+ Body[Body["NONE"] = 0] = "NONE";
10
+ Body[Body["Request"] = 1] = "Request";
11
+ Body[Body["Notification"] = 2] = "Notification";
12
+ })(Body || (exports.Body = Body = {}));
13
+ function unionToBody(type, accessor) {
14
+ switch (Body[type]) {
15
+ case 'NONE': return null;
16
+ case 'Request': return accessor(new request_1.Request());
17
+ case 'Notification': return accessor(new notification_1.Notification());
18
+ default: return null;
19
+ }
20
+ }
21
+ exports.unionToBody = unionToBody;
22
+ function unionListToBody(type, accessor, index) {
23
+ switch (Body[type]) {
24
+ case 'NONE': return null;
25
+ case 'Request': return accessor(index, new request_1.Request());
26
+ case 'Notification': return accessor(index, new notification_1.Notification());
27
+ default: return null;
28
+ }
29
+ }
30
+ exports.unionListToBody = unionListToBody;
@@ -0,0 +1,29 @@
1
+ import * as flatbuffers from 'flatbuffers';
2
+ import { Body } from '../../fbs/message-to-worker/body';
3
+ import { NotificationT } from '../../fbs/notification-to-worker/notification';
4
+ import { RequestT } from '../../fbs/request/request';
5
+ export declare class Message implements flatbuffers.IUnpackableObject<MessageT> {
6
+ bb: flatbuffers.ByteBuffer | null;
7
+ bb_pos: number;
8
+ __init(i: number, bb: flatbuffers.ByteBuffer): Message;
9
+ static getRootAsMessage(bb: flatbuffers.ByteBuffer, obj?: Message): Message;
10
+ static getSizePrefixedRootAsMessage(bb: flatbuffers.ByteBuffer, obj?: Message): Message;
11
+ dataType(): Body;
12
+ data<T extends flatbuffers.Table>(obj: any): any | null;
13
+ static startMessage(builder: flatbuffers.Builder): void;
14
+ static addDataType(builder: flatbuffers.Builder, dataType: Body): void;
15
+ static addData(builder: flatbuffers.Builder, dataOffset: flatbuffers.Offset): void;
16
+ static endMessage(builder: flatbuffers.Builder): flatbuffers.Offset;
17
+ static finishMessageBuffer(builder: flatbuffers.Builder, offset: flatbuffers.Offset): void;
18
+ static finishSizePrefixedMessageBuffer(builder: flatbuffers.Builder, offset: flatbuffers.Offset): void;
19
+ static createMessage(builder: flatbuffers.Builder, dataType: Body, dataOffset: flatbuffers.Offset): flatbuffers.Offset;
20
+ unpack(): MessageT;
21
+ unpackTo(_o: MessageT): void;
22
+ }
23
+ export declare class MessageT implements flatbuffers.IGeneratedObject {
24
+ dataType: Body;
25
+ data: NotificationT | RequestT | null;
26
+ constructor(dataType?: Body, data?: NotificationT | RequestT | null);
27
+ pack(builder: flatbuffers.Builder): flatbuffers.Offset;
28
+ }
29
+ //# sourceMappingURL=message.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../../src/fbs/message-to-worker/message.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,WAAW,MAAM,aAAa,CAAC;AAE3C,OAAO,EAAE,IAAI,EAAgC,MAAM,kCAAkC,CAAC;AACtF,OAAO,EAAgB,aAAa,EAAE,MAAM,+CAA+C,CAAC;AAC5F,OAAO,EAAW,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAG9D,qBAAa,OAAQ,YAAW,WAAW,CAAC,iBAAiB,CAAC,QAAQ,CAAC;IACrE,EAAE,EAAE,WAAW,CAAC,UAAU,GAAC,IAAI,CAAQ;IACvC,MAAM,SA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EpD,QAAQ,EAAE,IAAI;IACd,IAAI,EAAE,aAAa,GAAC,QAAQ,GAAC,IAAI;gBADjC,QAAQ,GAAE,IAAgB,EAC1B,IAAI,GAAE,aAAa,GAAC,QAAQ,GAAC,IAAW;IAIjD,IAAI,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,MAAM;CAQpD"}
@@ -0,0 +1,89 @@
1
+ "use strict";
2
+ // automatically generated by the FlatBuffers compiler, do not modify
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.MessageT = exports.Message = void 0;
5
+ const flatbuffers = require("flatbuffers");
6
+ const body_1 = require("../../fbs/message-to-worker/body");
7
+ class Message {
8
+ bb = null;
9
+ bb_pos = 0;
10
+ __init(i, bb) {
11
+ this.bb_pos = i;
12
+ this.bb = bb;
13
+ return this;
14
+ }
15
+ static getRootAsMessage(bb, obj) {
16
+ return (obj || new Message()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
17
+ }
18
+ static getSizePrefixedRootAsMessage(bb, obj) {
19
+ bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
20
+ return (obj || new Message()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
21
+ }
22
+ dataType() {
23
+ const offset = this.bb.__offset(this.bb_pos, 4);
24
+ return offset ? this.bb.readUint8(this.bb_pos + offset) : body_1.Body.NONE;
25
+ }
26
+ data(obj) {
27
+ const offset = this.bb.__offset(this.bb_pos, 6);
28
+ return offset ? this.bb.__union(obj, this.bb_pos + offset) : null;
29
+ }
30
+ static startMessage(builder) {
31
+ builder.startObject(2);
32
+ }
33
+ static addDataType(builder, dataType) {
34
+ builder.addFieldInt8(0, dataType, body_1.Body.NONE);
35
+ }
36
+ static addData(builder, dataOffset) {
37
+ builder.addFieldOffset(1, dataOffset, 0);
38
+ }
39
+ static endMessage(builder) {
40
+ const offset = builder.endObject();
41
+ builder.requiredField(offset, 6); // data
42
+ return offset;
43
+ }
44
+ static finishMessageBuffer(builder, offset) {
45
+ builder.finish(offset);
46
+ }
47
+ static finishSizePrefixedMessageBuffer(builder, offset) {
48
+ builder.finish(offset, undefined, true);
49
+ }
50
+ static createMessage(builder, dataType, dataOffset) {
51
+ Message.startMessage(builder);
52
+ Message.addDataType(builder, dataType);
53
+ Message.addData(builder, dataOffset);
54
+ return Message.endMessage(builder);
55
+ }
56
+ unpack() {
57
+ return new MessageT(this.dataType(), (() => {
58
+ const temp = (0, body_1.unionToBody)(this.dataType(), this.data.bind(this));
59
+ if (temp === null) {
60
+ return null;
61
+ }
62
+ return temp.unpack();
63
+ })());
64
+ }
65
+ unpackTo(_o) {
66
+ _o.dataType = this.dataType();
67
+ _o.data = (() => {
68
+ const temp = (0, body_1.unionToBody)(this.dataType(), this.data.bind(this));
69
+ if (temp === null) {
70
+ return null;
71
+ }
72
+ return temp.unpack();
73
+ })();
74
+ }
75
+ }
76
+ exports.Message = Message;
77
+ class MessageT {
78
+ dataType;
79
+ data;
80
+ constructor(dataType = body_1.Body.NONE, data = null) {
81
+ this.dataType = dataType;
82
+ this.data = data;
83
+ }
84
+ pack(builder) {
85
+ const data = builder.createObjectOffset(this.data);
86
+ return Message.createMessage(builder, this.dataType, data);
87
+ }
88
+ }
89
+ exports.MessageT = MessageT;
@@ -0,0 +1,3 @@
1
+ export { Body } from './message-to-worker/body';
2
+ export { Message, MessageT } from './message-to-worker/message';
3
+ //# sourceMappingURL=message-to-worker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"message-to-worker.d.ts","sourceRoot":"","sources":["../../src/fbs/message-to-worker.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ // automatically generated by the FlatBuffers compiler, do not modify
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.MessageT = exports.Message = exports.Body = void 0;
5
+ var body_1 = require("./message-to-worker/body");
6
+ Object.defineProperty(exports, "Body", { enumerable: true, get: function () { return body_1.Body; } });
7
+ var message_1 = require("./message-to-worker/message");
8
+ Object.defineProperty(exports, "Message", { enumerable: true, get: function () { return message_1.Message; } });
9
+ Object.defineProperty(exports, "MessageT", { enumerable: true, get: function () { return message_1.MessageT; } });
@@ -0,0 +1,44 @@
1
+ import { DominantSpeakerNotification } from '../../fbs/active-speaker-observer/dominant-speaker-notification';
2
+ import { VolumesNotification } from '../../fbs/audio-level-observer/volumes-notification';
3
+ import { LayersChangeNotification } from '../../fbs/consumer/layers-change-notification';
4
+ import { RtpNotification } from '../../fbs/consumer/rtp-notification';
5
+ import { ScoreNotification as FBS_Consumer_ScoreNotification } from '../../fbs/consumer/score-notification';
6
+ import { TraceNotification as FBS_Consumer_TraceNotification } from '../../fbs/consumer/trace-notification';
7
+ import { BufferedAmountLowNotification } from '../../fbs/data-consumer/buffered-amount-low-notification';
8
+ import { MessageNotification } from '../../fbs/data-consumer/message-notification';
9
+ import { RtcpNotification } from '../../fbs/direct-transport/rtcp-notification';
10
+ import { RtcpTupleNotification } from '../../fbs/plain-transport/rtcp-tuple-notification';
11
+ import { TupleNotification } from '../../fbs/plain-transport/tuple-notification';
12
+ import { ScoreNotification } from '../../fbs/producer/score-notification';
13
+ import { TraceNotification as FBS_Producer_TraceNotification } from '../../fbs/producer/trace-notification';
14
+ import { VideoOrientationChangeNotification } from '../../fbs/producer/video-orientation-change-notification';
15
+ import { SctpStateChangeNotification } from '../../fbs/transport/sctp-state-change-notification';
16
+ import { TraceNotification } from '../../fbs/transport/trace-notification';
17
+ import { DtlsStateChangeNotification } from '../../fbs/web-rtc-transport/dtls-state-change-notification';
18
+ import { IceSelectedTupleChangeNotification } from '../../fbs/web-rtc-transport/ice-selected-tuple-change-notification';
19
+ import { IceStateChangeNotification } from '../../fbs/web-rtc-transport/ice-state-change-notification';
20
+ export declare enum Body {
21
+ NONE = 0,
22
+ Transport_TraceNotification = 1,
23
+ Transport_SctpStateChangeNotification = 2,
24
+ WebRtcTransport_IceSelectedTupleChangeNotification = 3,
25
+ WebRtcTransport_IceStateChangeNotification = 4,
26
+ WebRtcTransport_DtlsStateChangeNotification = 5,
27
+ PlainTransport_TupleNotification = 6,
28
+ PlainTransport_RtcpTupleNotification = 7,
29
+ DirectTransport_RtcpNotification = 8,
30
+ Producer_ScoreNotification = 9,
31
+ Producer_TraceNotification = 10,
32
+ Producer_VideoOrientationChangeNotification = 11,
33
+ Consumer_LayersChangeNotification = 12,
34
+ Consumer_RtpNotification = 13,
35
+ Consumer_ScoreNotification = 14,
36
+ Consumer_TraceNotification = 15,
37
+ DataConsumer_MessageNotification = 16,
38
+ DataConsumer_BufferedAmountLowNotification = 17,
39
+ ActiveSpeakerObserver_DominantSpeakerNotification = 18,
40
+ AudioLevelObserver_VolumesNotification = 19
41
+ }
42
+ export declare function unionToBody(type: Body, accessor: (obj: BufferedAmountLowNotification | DominantSpeakerNotification | DtlsStateChangeNotification | FBS_Consumer_ScoreNotification | FBS_Consumer_TraceNotification | FBS_Producer_TraceNotification | IceSelectedTupleChangeNotification | IceStateChangeNotification | LayersChangeNotification | MessageNotification | RtcpNotification | RtcpTupleNotification | RtpNotification | ScoreNotification | SctpStateChangeNotification | TraceNotification | TupleNotification | VideoOrientationChangeNotification | VolumesNotification) => BufferedAmountLowNotification | DominantSpeakerNotification | DtlsStateChangeNotification | FBS_Consumer_ScoreNotification | FBS_Consumer_TraceNotification | FBS_Producer_TraceNotification | IceSelectedTupleChangeNotification | IceStateChangeNotification | LayersChangeNotification | MessageNotification | RtcpNotification | RtcpTupleNotification | RtpNotification | ScoreNotification | SctpStateChangeNotification | TraceNotification | TupleNotification | VideoOrientationChangeNotification | VolumesNotification | null): BufferedAmountLowNotification | DominantSpeakerNotification | DtlsStateChangeNotification | FBS_Consumer_ScoreNotification | FBS_Consumer_TraceNotification | FBS_Producer_TraceNotification | IceSelectedTupleChangeNotification | IceStateChangeNotification | LayersChangeNotification | MessageNotification | RtcpNotification | RtcpTupleNotification | RtpNotification | ScoreNotification | SctpStateChangeNotification | TraceNotification | TupleNotification | VideoOrientationChangeNotification | VolumesNotification | null;
43
+ export declare function unionListToBody(type: Body, accessor: (index: number, obj: BufferedAmountLowNotification | DominantSpeakerNotification | DtlsStateChangeNotification | FBS_Consumer_ScoreNotification | FBS_Consumer_TraceNotification | FBS_Producer_TraceNotification | IceSelectedTupleChangeNotification | IceStateChangeNotification | LayersChangeNotification | MessageNotification | RtcpNotification | RtcpTupleNotification | RtpNotification | ScoreNotification | SctpStateChangeNotification | TraceNotification | TupleNotification | VideoOrientationChangeNotification | VolumesNotification) => BufferedAmountLowNotification | DominantSpeakerNotification | DtlsStateChangeNotification | FBS_Consumer_ScoreNotification | FBS_Consumer_TraceNotification | FBS_Producer_TraceNotification | IceSelectedTupleChangeNotification | IceStateChangeNotification | LayersChangeNotification | MessageNotification | RtcpNotification | RtcpTupleNotification | RtpNotification | ScoreNotification | SctpStateChangeNotification | TraceNotification | TupleNotification | VideoOrientationChangeNotification | VolumesNotification | null, index: number): BufferedAmountLowNotification | DominantSpeakerNotification | DtlsStateChangeNotification | FBS_Consumer_ScoreNotification | FBS_Consumer_TraceNotification | FBS_Producer_TraceNotification | IceSelectedTupleChangeNotification | IceStateChangeNotification | LayersChangeNotification | MessageNotification | RtcpNotification | RtcpTupleNotification | RtpNotification | ScoreNotification | SctpStateChangeNotification | TraceNotification | TupleNotification | VideoOrientationChangeNotification | VolumesNotification | null;
44
+ //# sourceMappingURL=body.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"body.d.ts","sourceRoot":"","sources":["../../../src/fbs/notification-from-worker/body.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,2BAA2B,EAAgC,MAAM,iEAAiE,CAAC;AAC5I,OAAO,EAAE,mBAAmB,EAAwB,MAAM,qDAAqD,CAAC;AAChH,OAAO,EAAE,wBAAwB,EAA6B,MAAM,+CAA+C,C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A8B,GAAC,kCAAkC,GAAC,0BAA0B,GAAC,wBAAwB,GAAC,mBAAmB,GAAC,gBAAgB,GAAC,qBAAqB,GAAC,eAAe,GAAC,iBAAiB,GAAC,2BAA2B,GAAC,iBAAiB,GAAC,iBAAiB,GAAC,kCAAkC,GAAC,mBAAmB,KAAK,6BAA6B,GAAC,2BAA2B,GAAC,2BAA2B,GAAC,8BAA8B,GAAC,8BAA8B,GAAC,8BAA8B,GAAC,kCAAkC,GAAC,0BAA0B,GAAC,wBAAwB,GAAC,mBAAmB,GAAC,gBAAgB,GAAC,qBAAqB,GAAC,eAAe,GAAC,iBAAiB,GAAC,2BAA2B,GAAC,iBAAiB,GAAC,iBAAiB,GAAC,kCAAkC,GAAC,mBAAmB,GAAC,IAAI,EACl+B,KAAK,EAAE,MAAM,GACZ,6BAA6B,GAAC,2BAA2B,GAAC,2BAA2B,GAAC,8BAA8B,GAAC,8BAA8B,GAAC,8BAA8B,GAAC,kCAAkC,GAAC,0BAA0B,GAAC,wBAAwB,GAAC,mBAAmB,GAAC,gBAAgB,GAAC,qBAAqB,GAAC,eAAe,GAAC,iBAAiB,GAAC,2BAA2B,GAAC,iBAAiB,GAAC,iBAAiB,GAAC,kCAAkC,GAAC,mBAAmB,GAAC,IAAI,CAwBpe"}
@@ -0,0 +1,98 @@
1
+ "use strict";
2
+ // automatically generated by the FlatBuffers compiler, do not modify
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.unionListToBody = exports.unionToBody = exports.Body = void 0;
5
+ const dominant_speaker_notification_1 = require("../../fbs/active-speaker-observer/dominant-speaker-notification");
6
+ const volumes_notification_1 = require("../../fbs/audio-level-observer/volumes-notification");
7
+ const layers_change_notification_1 = require("../../fbs/consumer/layers-change-notification");
8
+ const rtp_notification_1 = require("../../fbs/consumer/rtp-notification");
9
+ const score_notification_1 = require("../../fbs/consumer/score-notification");
10
+ const trace_notification_1 = require("../../fbs/consumer/trace-notification");
11
+ const buffered_amount_low_notification_1 = require("../../fbs/data-consumer/buffered-amount-low-notification");
12
+ const message_notification_1 = require("../../fbs/data-consumer/message-notification");
13
+ const rtcp_notification_1 = require("../../fbs/direct-transport/rtcp-notification");
14
+ const rtcp_tuple_notification_1 = require("../../fbs/plain-transport/rtcp-tuple-notification");
15
+ const tuple_notification_1 = require("../../fbs/plain-transport/tuple-notification");
16
+ const score_notification_2 = require("../../fbs/producer/score-notification");
17
+ const trace_notification_2 = require("../../fbs/producer/trace-notification");
18
+ const video_orientation_change_notification_1 = require("../../fbs/producer/video-orientation-change-notification");
19
+ const sctp_state_change_notification_1 = require("../../fbs/transport/sctp-state-change-notification");
20
+ const trace_notification_3 = require("../../fbs/transport/trace-notification");
21
+ const dtls_state_change_notification_1 = require("../../fbs/web-rtc-transport/dtls-state-change-notification");
22
+ const ice_selected_tuple_change_notification_1 = require("../../fbs/web-rtc-transport/ice-selected-tuple-change-notification");
23
+ const ice_state_change_notification_1 = require("../../fbs/web-rtc-transport/ice-state-change-notification");
24
+ var Body;
25
+ (function (Body) {
26
+ Body[Body["NONE"] = 0] = "NONE";
27
+ Body[Body["Transport_TraceNotification"] = 1] = "Transport_TraceNotification";
28
+ Body[Body["Transport_SctpStateChangeNotification"] = 2] = "Transport_SctpStateChangeNotification";
29
+ Body[Body["WebRtcTransport_IceSelectedTupleChangeNotification"] = 3] = "WebRtcTransport_IceSelectedTupleChangeNotification";
30
+ Body[Body["WebRtcTransport_IceStateChangeNotification"] = 4] = "WebRtcTransport_IceStateChangeNotification";
31
+ Body[Body["WebRtcTransport_DtlsStateChangeNotification"] = 5] = "WebRtcTransport_DtlsStateChangeNotification";
32
+ Body[Body["PlainTransport_TupleNotification"] = 6] = "PlainTransport_TupleNotification";
33
+ Body[Body["PlainTransport_RtcpTupleNotification"] = 7] = "PlainTransport_RtcpTupleNotification";
34
+ Body[Body["DirectTransport_RtcpNotification"] = 8] = "DirectTransport_RtcpNotification";
35
+ Body[Body["Producer_ScoreNotification"] = 9] = "Producer_ScoreNotification";
36
+ Body[Body["Producer_TraceNotification"] = 10] = "Producer_TraceNotification";
37
+ Body[Body["Producer_VideoOrientationChangeNotification"] = 11] = "Producer_VideoOrientationChangeNotification";
38
+ Body[Body["Consumer_LayersChangeNotification"] = 12] = "Consumer_LayersChangeNotification";
39
+ Body[Body["Consumer_RtpNotification"] = 13] = "Consumer_RtpNotification";
40
+ Body[Body["Consumer_ScoreNotification"] = 14] = "Consumer_ScoreNotification";
41
+ Body[Body["Consumer_TraceNotification"] = 15] = "Consumer_TraceNotification";
42
+ Body[Body["DataConsumer_MessageNotification"] = 16] = "DataConsumer_MessageNotification";
43
+ Body[Body["DataConsumer_BufferedAmountLowNotification"] = 17] = "DataConsumer_BufferedAmountLowNotification";
44
+ Body[Body["ActiveSpeakerObserver_DominantSpeakerNotification"] = 18] = "ActiveSpeakerObserver_DominantSpeakerNotification";
45
+ Body[Body["AudioLevelObserver_VolumesNotification"] = 19] = "AudioLevelObserver_VolumesNotification";
46
+ })(Body || (exports.Body = Body = {}));
47
+ function unionToBody(type, accessor) {
48
+ switch (Body[type]) {
49
+ case 'NONE': return null;
50
+ case 'Transport_TraceNotification': return accessor(new trace_notification_3.TraceNotification());
51
+ case 'Transport_SctpStateChangeNotification': return accessor(new sctp_state_change_notification_1.SctpStateChangeNotification());
52
+ case 'WebRtcTransport_IceSelectedTupleChangeNotification': return accessor(new ice_selected_tuple_change_notification_1.IceSelectedTupleChangeNotification());
53
+ case 'WebRtcTransport_IceStateChangeNotification': return accessor(new ice_state_change_notification_1.IceStateChangeNotification());
54
+ case 'WebRtcTransport_DtlsStateChangeNotification': return accessor(new dtls_state_change_notification_1.DtlsStateChangeNotification());
55
+ case 'PlainTransport_TupleNotification': return accessor(new tuple_notification_1.TupleNotification());
56
+ case 'PlainTransport_RtcpTupleNotification': return accessor(new rtcp_tuple_notification_1.RtcpTupleNotification());
57
+ case 'DirectTransport_RtcpNotification': return accessor(new rtcp_notification_1.RtcpNotification());
58
+ case 'Producer_ScoreNotification': return accessor(new score_notification_2.ScoreNotification());
59
+ case 'Producer_TraceNotification': return accessor(new trace_notification_2.TraceNotification());
60
+ case 'Producer_VideoOrientationChangeNotification': return accessor(new video_orientation_change_notification_1.VideoOrientationChangeNotification());
61
+ case 'Consumer_LayersChangeNotification': return accessor(new layers_change_notification_1.LayersChangeNotification());
62
+ case 'Consumer_RtpNotification': return accessor(new rtp_notification_1.RtpNotification());
63
+ case 'Consumer_ScoreNotification': return accessor(new score_notification_1.ScoreNotification());
64
+ case 'Consumer_TraceNotification': return accessor(new trace_notification_1.TraceNotification());
65
+ case 'DataConsumer_MessageNotification': return accessor(new message_notification_1.MessageNotification());
66
+ case 'DataConsumer_BufferedAmountLowNotification': return accessor(new buffered_amount_low_notification_1.BufferedAmountLowNotification());
67
+ case 'ActiveSpeakerObserver_DominantSpeakerNotification': return accessor(new dominant_speaker_notification_1.DominantSpeakerNotification());
68
+ case 'AudioLevelObserver_VolumesNotification': return accessor(new volumes_notification_1.VolumesNotification());
69
+ default: return null;
70
+ }
71
+ }
72
+ exports.unionToBody = unionToBody;
73
+ function unionListToBody(type, accessor, index) {
74
+ switch (Body[type]) {
75
+ case 'NONE': return null;
76
+ case 'Transport_TraceNotification': return accessor(index, new trace_notification_3.TraceNotification());
77
+ case 'Transport_SctpStateChangeNotification': return accessor(index, new sctp_state_change_notification_1.SctpStateChangeNotification());
78
+ case 'WebRtcTransport_IceSelectedTupleChangeNotification': return accessor(index, new ice_selected_tuple_change_notification_1.IceSelectedTupleChangeNotification());
79
+ case 'WebRtcTransport_IceStateChangeNotification': return accessor(index, new ice_state_change_notification_1.IceStateChangeNotification());
80
+ case 'WebRtcTransport_DtlsStateChangeNotification': return accessor(index, new dtls_state_change_notification_1.DtlsStateChangeNotification());
81
+ case 'PlainTransport_TupleNotification': return accessor(index, new tuple_notification_1.TupleNotification());
82
+ case 'PlainTransport_RtcpTupleNotification': return accessor(index, new rtcp_tuple_notification_1.RtcpTupleNotification());
83
+ case 'DirectTransport_RtcpNotification': return accessor(index, new rtcp_notification_1.RtcpNotification());
84
+ case 'Producer_ScoreNotification': return accessor(index, new score_notification_2.ScoreNotification());
85
+ case 'Producer_TraceNotification': return accessor(index, new trace_notification_2.TraceNotification());
86
+ case 'Producer_VideoOrientationChangeNotification': return accessor(index, new video_orientation_change_notification_1.VideoOrientationChangeNotification());
87
+ case 'Consumer_LayersChangeNotification': return accessor(index, new layers_change_notification_1.LayersChangeNotification());
88
+ case 'Consumer_RtpNotification': return accessor(index, new rtp_notification_1.RtpNotification());
89
+ case 'Consumer_ScoreNotification': return accessor(index, new score_notification_1.ScoreNotification());
90
+ case 'Consumer_TraceNotification': return accessor(index, new trace_notification_1.TraceNotification());
91
+ case 'DataConsumer_MessageNotification': return accessor(index, new message_notification_1.MessageNotification());
92
+ case 'DataConsumer_BufferedAmountLowNotification': return accessor(index, new buffered_amount_low_notification_1.BufferedAmountLowNotification());
93
+ case 'ActiveSpeakerObserver_DominantSpeakerNotification': return accessor(index, new dominant_speaker_notification_1.DominantSpeakerNotification());
94
+ case 'AudioLevelObserver_VolumesNotification': return accessor(index, new volumes_notification_1.VolumesNotification());
95
+ default: return null;
96
+ }
97
+ }
98
+ exports.unionListToBody = unionListToBody;
@@ -0,0 +1,31 @@
1
+ export declare enum Event {
2
+ WORKER_RUNNING = 0,
3
+ TRANSPORT_SCTP_STATE_CHANGE = 1,
4
+ TRANSPORT_TRACE = 2,
5
+ WEBRTCTRANSPORT_ICE_SELECTED_TUPLE_CHANGE = 3,
6
+ WEBRTCTRANSPORT_ICE_STATE_CHANGE = 4,
7
+ WEBRTCTRANSPORT_DTLS_STATE_CHANGE = 5,
8
+ PLAINTRANSPORT_TUPLE = 6,
9
+ PLAINTRANSPORT_RTCP_TUPLE = 7,
10
+ DIRECTTRANSPORT_RTCP = 8,
11
+ PRODUCER_SCORE = 9,
12
+ PRODUCER_TRACE = 10,
13
+ PRODUCER_VIDEO_ORIENTATION_CHANGE = 11,
14
+ CONSUMER_PRODUCER_PAUSE = 12,
15
+ CONSUMER_PRODUCER_RESUME = 13,
16
+ CONSUMER_PRODUCER_CLOSE = 14,
17
+ CONSUMER_LAYERS_CHANGE = 15,
18
+ CONSUMER_RTP = 16,
19
+ CONSUMER_SCORE = 17,
20
+ CONSUMER_TRACE = 18,
21
+ DATACONSUMER_BUFFERED_AMOUNT_LOW = 19,
22
+ DATACONSUMER_SCTP_SENDBUFFER_FULL = 20,
23
+ DATACONSUMER_DATAPRODUCER_PAUSE = 21,
24
+ DATACONSUMER_DATAPRODUCER_RESUME = 22,
25
+ DATACONSUMER_DATAPRODUCER_CLOSE = 23,
26
+ DATACONSUMER_MESSAGE = 24,
27
+ ACTIVESPEAKEROBSERVER_DOMINANT_SPEAKER = 25,
28
+ AUDIOLEVELOBSERVER_SILENCE = 26,
29
+ AUDIOLEVELOBSERVER_VOLUMES = 27
30
+ }
31
+ //# sourceMappingURL=event.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../../src/fbs/notification-from-worker/event.ts"],"names":[],"mappings":"AAEA,oBAAY,KAAK;IACf,cAAc,IAAI;IAClB,2BAA2B,IAAI;IAC/B,eAAe,IAAI;IACnB,yCAAyC,IAAI;IAC7C,gCAAgC,IAAI;IACpC,iCAAiC,IAAI;IACrC,oBAAoB,IAAI;IACxB,yBAAyB,IAAI;IAC7B,oBAAoB,IAAI;IACxB,cAAc,IAAI;IAClB,cAAc,KAAK;IACnB,iCAAiC,KAAK;IACtC,uBAAuB,KAAK;IAC5B,wBAAwB,KAAK;IAC7B,uBAAuB,KAAK;IAC5B,sBAAsB,KAAK;IAC3B,YAAY,KAAK;IACjB,cAAc,KAAK;IACnB,cAAc,KAAK;IACnB,gCAAgC,KAAK;IACrC,iCAAiC,KAAK;IACtC,+BAA+B,KAAK;IACpC,gCAAgC,KAAK;IACrC,+BAA+B,KAAK;IACpC,oBAAoB,KAAK;IACzB,sCAAsC,KAAK;IAC3C,0BAA0B,KAAK;IAC/B,0BAA0B,KAAK;CAChC"}
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ // automatically generated by the FlatBuffers compiler, do not modify
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Event = void 0;
5
+ var Event;
6
+ (function (Event) {
7
+ Event[Event["WORKER_RUNNING"] = 0] = "WORKER_RUNNING";
8
+ Event[Event["TRANSPORT_SCTP_STATE_CHANGE"] = 1] = "TRANSPORT_SCTP_STATE_CHANGE";
9
+ Event[Event["TRANSPORT_TRACE"] = 2] = "TRANSPORT_TRACE";
10
+ Event[Event["WEBRTCTRANSPORT_ICE_SELECTED_TUPLE_CHANGE"] = 3] = "WEBRTCTRANSPORT_ICE_SELECTED_TUPLE_CHANGE";
11
+ Event[Event["WEBRTCTRANSPORT_ICE_STATE_CHANGE"] = 4] = "WEBRTCTRANSPORT_ICE_STATE_CHANGE";
12
+ Event[Event["WEBRTCTRANSPORT_DTLS_STATE_CHANGE"] = 5] = "WEBRTCTRANSPORT_DTLS_STATE_CHANGE";
13
+ Event[Event["PLAINTRANSPORT_TUPLE"] = 6] = "PLAINTRANSPORT_TUPLE";
14
+ Event[Event["PLAINTRANSPORT_RTCP_TUPLE"] = 7] = "PLAINTRANSPORT_RTCP_TUPLE";
15
+ Event[Event["DIRECTTRANSPORT_RTCP"] = 8] = "DIRECTTRANSPORT_RTCP";
16
+ Event[Event["PRODUCER_SCORE"] = 9] = "PRODUCER_SCORE";
17
+ Event[Event["PRODUCER_TRACE"] = 10] = "PRODUCER_TRACE";
18
+ Event[Event["PRODUCER_VIDEO_ORIENTATION_CHANGE"] = 11] = "PRODUCER_VIDEO_ORIENTATION_CHANGE";
19
+ Event[Event["CONSUMER_PRODUCER_PAUSE"] = 12] = "CONSUMER_PRODUCER_PAUSE";
20
+ Event[Event["CONSUMER_PRODUCER_RESUME"] = 13] = "CONSUMER_PRODUCER_RESUME";
21
+ Event[Event["CONSUMER_PRODUCER_CLOSE"] = 14] = "CONSUMER_PRODUCER_CLOSE";
22
+ Event[Event["CONSUMER_LAYERS_CHANGE"] = 15] = "CONSUMER_LAYERS_CHANGE";
23
+ Event[Event["CONSUMER_RTP"] = 16] = "CONSUMER_RTP";
24
+ Event[Event["CONSUMER_SCORE"] = 17] = "CONSUMER_SCORE";
25
+ Event[Event["CONSUMER_TRACE"] = 18] = "CONSUMER_TRACE";
26
+ Event[Event["DATACONSUMER_BUFFERED_AMOUNT_LOW"] = 19] = "DATACONSUMER_BUFFERED_AMOUNT_LOW";
27
+ Event[Event["DATACONSUMER_SCTP_SENDBUFFER_FULL"] = 20] = "DATACONSUMER_SCTP_SENDBUFFER_FULL";
28
+ Event[Event["DATACONSUMER_DATAPRODUCER_PAUSE"] = 21] = "DATACONSUMER_DATAPRODUCER_PAUSE";
29
+ Event[Event["DATACONSUMER_DATAPRODUCER_RESUME"] = 22] = "DATACONSUMER_DATAPRODUCER_RESUME";
30
+ Event[Event["DATACONSUMER_DATAPRODUCER_CLOSE"] = 23] = "DATACONSUMER_DATAPRODUCER_CLOSE";
31
+ Event[Event["DATACONSUMER_MESSAGE"] = 24] = "DATACONSUMER_MESSAGE";
32
+ Event[Event["ACTIVESPEAKEROBSERVER_DOMINANT_SPEAKER"] = 25] = "ACTIVESPEAKEROBSERVER_DOMINANT_SPEAKER";
33
+ Event[Event["AUDIOLEVELOBSERVER_SILENCE"] = 26] = "AUDIOLEVELOBSERVER_SILENCE";
34
+ Event[Event["AUDIOLEVELOBSERVER_VOLUMES"] = 27] = "AUDIOLEVELOBSERVER_VOLUMES";
35
+ })(Event || (exports.Event = Event = {}));