mediasoup 3.20.7 → 3.20.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.
- package/node/lib/Worker.d.ts +1 -1
- package/node/lib/Worker.d.ts.map +1 -1
- package/node/lib/Worker.js +11 -1
- package/node/lib/WorkerTypes.d.ts +9 -0
- package/node/lib/WorkerTypes.d.ts.map +1 -1
- package/node/lib/fbs/data-consumer/binary.d.ts +25 -0
- package/node/lib/fbs/data-consumer/binary.d.ts.map +1 -0
- package/node/lib/fbs/data-consumer/binary.js +110 -0
- package/node/lib/fbs/data-consumer/data.d.ts +10 -0
- package/node/lib/fbs/data-consumer/data.d.ts.map +1 -0
- package/node/lib/fbs/data-consumer/data.js +30 -0
- package/node/lib/fbs/data-consumer/string.d.ts +22 -0
- package/node/lib/fbs/data-consumer/string.d.ts.map +1 -0
- package/node/lib/fbs/{worker/close-notification.js → data-consumer/string.js} +34 -20
- package/node/lib/fbs/data-producer/binary.d.ts +25 -0
- package/node/lib/fbs/data-producer/binary.d.ts.map +1 -0
- package/node/lib/fbs/data-producer/binary.js +110 -0
- package/node/lib/fbs/data-producer/data.d.ts +10 -0
- package/node/lib/fbs/data-producer/data.d.ts.map +1 -0
- package/node/lib/fbs/data-producer/data.js +30 -0
- package/node/lib/fbs/data-producer/string.d.ts +22 -0
- package/node/lib/fbs/data-producer/string.d.ts.map +1 -0
- package/node/lib/fbs/data-producer/string.js +92 -0
- package/node/lib/fbs/message/type.d.ts +7 -0
- package/node/lib/fbs/message/type.d.ts.map +1 -0
- package/node/lib/fbs/message/type.js +11 -0
- package/node/lib/fbs/message-from-worker/body.d.ts +12 -0
- package/node/lib/fbs/message-from-worker/body.d.ts.map +1 -0
- package/node/lib/fbs/message-from-worker/body.js +34 -0
- package/node/lib/fbs/message-from-worker/message.d.ts +30 -0
- package/node/lib/fbs/message-from-worker/message.d.ts.map +1 -0
- package/node/lib/fbs/message-from-worker/message.js +122 -0
- package/node/lib/fbs/message-from-worker.d.ts +3 -0
- package/node/lib/fbs/message-from-worker.d.ts.map +1 -0
- package/node/lib/fbs/message-from-worker.js +9 -0
- package/node/lib/fbs/message-to-worker/body.d.ts +10 -0
- package/node/lib/fbs/message-to-worker/body.d.ts.map +1 -0
- package/node/lib/fbs/message-to-worker/body.js +30 -0
- package/node/lib/fbs/message-to-worker/message.d.ts +29 -0
- package/node/lib/fbs/message-to-worker/message.d.ts.map +1 -0
- package/node/lib/fbs/message-to-worker/message.js +122 -0
- package/node/lib/fbs/message-to-worker.d.ts +3 -0
- package/node/lib/fbs/message-to-worker.d.ts.map +1 -0
- package/node/lib/fbs/message-to-worker.js +9 -0
- package/node/lib/fbs/notification-from-worker/body.d.ts +44 -0
- package/node/lib/fbs/notification-from-worker/body.d.ts.map +1 -0
- package/node/lib/fbs/notification-from-worker/body.js +98 -0
- package/node/lib/fbs/notification-from-worker/event.d.ts +31 -0
- package/node/lib/fbs/notification-from-worker/event.d.ts.map +1 -0
- package/node/lib/fbs/notification-from-worker/event.js +35 -0
- package/node/lib/fbs/notification-from-worker/notification.d.ts +52 -0
- package/node/lib/fbs/notification-from-worker/notification.d.ts.map +1 -0
- package/node/lib/fbs/notification-from-worker/notification.js +140 -0
- package/node/lib/fbs/notification-from-worker.d.ts +4 -0
- package/node/lib/fbs/notification-from-worker.d.ts.map +1 -0
- package/node/lib/fbs/notification-from-worker.js +11 -0
- package/node/lib/fbs/notification-to-worker/body.d.ts +12 -0
- package/node/lib/fbs/notification-to-worker/body.d.ts.map +1 -0
- package/node/lib/fbs/notification-to-worker/body.js +34 -0
- package/node/lib/fbs/notification-to-worker/event.d.ts +6 -0
- package/node/lib/fbs/notification-to-worker/event.d.ts.map +1 -0
- package/node/lib/fbs/notification-to-worker/event.js +10 -0
- package/node/lib/fbs/notification-to-worker/notification.d.ts +36 -0
- package/node/lib/fbs/notification-to-worker/notification.d.ts.map +1 -0
- package/node/lib/fbs/notification-to-worker/notification.js +140 -0
- package/node/lib/fbs/notification-to-worker.d.ts +4 -0
- package/node/lib/fbs/notification-to-worker.d.ts.map +1 -0
- package/node/lib/fbs/notification-to-worker.js +11 -0
- package/node/lib/fbs/plain-transport/connect-response.d.ts.map +1 -1
- package/node/lib/fbs/plain-transport/connect-response.js +1 -0
- package/node/lib/fbs/sctp-parameters/num-sctp-streams.d.ts.map +1 -1
- package/node/lib/fbs/sctp-parameters/num-sctp-streams.js +5 -5
- package/node/lib/fbs/trace-events/fir-trace-info.d.ts +21 -0
- package/node/lib/fbs/trace-events/fir-trace-info.d.ts.map +1 -0
- package/node/lib/fbs/{worker/close-request.js → trace-events/fir-trace-info.js} +32 -20
- package/node/lib/fbs/trace-events/key-frame-trace-info.d.ts +25 -0
- package/node/lib/fbs/trace-events/key-frame-trace-info.d.ts.map +1 -0
- package/node/lib/fbs/trace-events/key-frame-trace-info.js +104 -0
- package/node/lib/fbs/trace-events/pli-trace-info.d.ts +21 -0
- package/node/lib/fbs/trace-events/pli-trace-info.d.ts.map +1 -0
- package/node/lib/fbs/{worker/close-worker-notification.js → trace-events/pli-trace-info.js} +32 -20
- package/node/lib/fbs/trace-events/rtp-trace-info.d.ts +25 -0
- package/node/lib/fbs/trace-events/rtp-trace-info.d.ts.map +1 -0
- package/node/lib/fbs/{consumer/enable-delay-and-loss-request.js → trace-events/rtp-trace-info.js} +35 -33
- package/node/lib/fbs/trace-events/trace-event-type.d.ts +8 -0
- package/node/lib/fbs/trace-events/trace-event-type.d.ts.map +1 -0
- package/node/lib/fbs/trace-events/trace-event-type.js +12 -0
- package/node/lib/fbs/trace-events/trace-info.d.ts +14 -0
- package/node/lib/fbs/trace-events/trace-info.d.ts.map +1 -0
- package/node/lib/fbs/trace-events/trace-info.js +38 -0
- package/node/lib/fbs/trace-events.d.ts +7 -0
- package/node/lib/fbs/trace-events.d.ts.map +1 -0
- package/node/lib/fbs/trace-events.js +20 -0
- package/node/lib/fbs/worker/dump-response.d.ts +5 -1
- package/node/lib/fbs/worker/dump-response.d.ts.map +1 -1
- package/node/lib/fbs/worker/dump-response.js +16 -3
- package/node/lib/index.d.ts +1 -1
- package/node/lib/index.d.ts.map +1 -1
- package/node/lib/index.js +2 -1
- package/node/lib/test/test-PlainTransport.js +0 -30
- package/node/lib/test/test-Worker.js +1 -0
- package/package.json +1 -1
- package/worker/src/RTC/SimpleProducerStreamManager.cpp +6 -3
- package/node/lib/fbs/consumer/degrade-request.d.ts +0 -30
- package/node/lib/fbs/consumer/degrade-request.d.ts.map +0 -1
- package/node/lib/fbs/consumer/degrade-request.js +0 -124
- package/node/lib/fbs/consumer/enable-delay-and-loss-request.d.ts +0 -24
- package/node/lib/fbs/consumer/enable-delay-and-loss-request.d.ts.map +0 -1
- package/node/lib/fbs/producer/degrade-request.d.ts +0 -30
- package/node/lib/fbs/producer/degrade-request.d.ts.map +0 -1
- package/node/lib/fbs/producer/degrade-request.js +0 -124
- package/node/lib/fbs/transport/sctp-negotiated-max-streams-notification.d.ts +0 -24
- package/node/lib/fbs/transport/sctp-negotiated-max-streams-notification.d.ts.map +0 -1
- package/node/lib/fbs/transport/sctp-negotiated-max-streams-notification.js +0 -102
- package/node/lib/fbs/transport/sctp-negotiated-options-notification.d.ts +0 -24
- package/node/lib/fbs/transport/sctp-negotiated-options-notification.d.ts.map +0 -1
- package/node/lib/fbs/transport/sctp-negotiated-options-notification.js +0 -102
- package/node/lib/fbs/worker/close-notification.d.ts +0 -18
- package/node/lib/fbs/worker/close-notification.d.ts.map +0 -1
- package/node/lib/fbs/worker/close-request.d.ts +0 -18
- package/node/lib/fbs/worker/close-request.d.ts.map +0 -1
- package/node/lib/fbs/worker/close-worker-notification.d.ts +0 -18
- package/node/lib/fbs/worker/close-worker-notification.d.ts.map +0 -1
|
@@ -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.Body = void 0;
|
|
5
|
+
exports.unionToBody = unionToBody;
|
|
6
|
+
exports.unionListToBody = unionListToBody;
|
|
7
|
+
const dominant_speaker_notification_1 = require("../../fbs/active-speaker-observer/dominant-speaker-notification");
|
|
8
|
+
const volumes_notification_1 = require("../../fbs/audio-level-observer/volumes-notification");
|
|
9
|
+
const layers_change_notification_1 = require("../../fbs/consumer/layers-change-notification");
|
|
10
|
+
const rtp_notification_1 = require("../../fbs/consumer/rtp-notification");
|
|
11
|
+
const score_notification_1 = require("../../fbs/consumer/score-notification");
|
|
12
|
+
const trace_notification_1 = require("../../fbs/consumer/trace-notification");
|
|
13
|
+
const buffered_amount_low_notification_1 = require("../../fbs/data-consumer/buffered-amount-low-notification");
|
|
14
|
+
const message_notification_1 = require("../../fbs/data-consumer/message-notification");
|
|
15
|
+
const rtcp_notification_1 = require("../../fbs/direct-transport/rtcp-notification");
|
|
16
|
+
const rtcp_tuple_notification_1 = require("../../fbs/plain-transport/rtcp-tuple-notification");
|
|
17
|
+
const tuple_notification_1 = require("../../fbs/plain-transport/tuple-notification");
|
|
18
|
+
const score_notification_2 = require("../../fbs/producer/score-notification");
|
|
19
|
+
const trace_notification_2 = require("../../fbs/producer/trace-notification");
|
|
20
|
+
const video_orientation_change_notification_1 = require("../../fbs/producer/video-orientation-change-notification");
|
|
21
|
+
const sctp_state_change_notification_1 = require("../../fbs/transport/sctp-state-change-notification");
|
|
22
|
+
const trace_notification_3 = require("../../fbs/transport/trace-notification");
|
|
23
|
+
const dtls_state_change_notification_1 = require("../../fbs/web-rtc-transport/dtls-state-change-notification");
|
|
24
|
+
const ice_selected_tuple_change_notification_1 = require("../../fbs/web-rtc-transport/ice-selected-tuple-change-notification");
|
|
25
|
+
const ice_state_change_notification_1 = require("../../fbs/web-rtc-transport/ice-state-change-notification");
|
|
26
|
+
var Body;
|
|
27
|
+
(function (Body) {
|
|
28
|
+
Body[Body["NONE"] = 0] = "NONE";
|
|
29
|
+
Body[Body["Transport_TraceNotification"] = 1] = "Transport_TraceNotification";
|
|
30
|
+
Body[Body["Transport_SctpStateChangeNotification"] = 2] = "Transport_SctpStateChangeNotification";
|
|
31
|
+
Body[Body["WebRtcTransport_IceSelectedTupleChangeNotification"] = 3] = "WebRtcTransport_IceSelectedTupleChangeNotification";
|
|
32
|
+
Body[Body["WebRtcTransport_IceStateChangeNotification"] = 4] = "WebRtcTransport_IceStateChangeNotification";
|
|
33
|
+
Body[Body["WebRtcTransport_DtlsStateChangeNotification"] = 5] = "WebRtcTransport_DtlsStateChangeNotification";
|
|
34
|
+
Body[Body["PlainTransport_TupleNotification"] = 6] = "PlainTransport_TupleNotification";
|
|
35
|
+
Body[Body["PlainTransport_RtcpTupleNotification"] = 7] = "PlainTransport_RtcpTupleNotification";
|
|
36
|
+
Body[Body["DirectTransport_RtcpNotification"] = 8] = "DirectTransport_RtcpNotification";
|
|
37
|
+
Body[Body["Producer_ScoreNotification"] = 9] = "Producer_ScoreNotification";
|
|
38
|
+
Body[Body["Producer_TraceNotification"] = 10] = "Producer_TraceNotification";
|
|
39
|
+
Body[Body["Producer_VideoOrientationChangeNotification"] = 11] = "Producer_VideoOrientationChangeNotification";
|
|
40
|
+
Body[Body["Consumer_LayersChangeNotification"] = 12] = "Consumer_LayersChangeNotification";
|
|
41
|
+
Body[Body["Consumer_RtpNotification"] = 13] = "Consumer_RtpNotification";
|
|
42
|
+
Body[Body["Consumer_ScoreNotification"] = 14] = "Consumer_ScoreNotification";
|
|
43
|
+
Body[Body["Consumer_TraceNotification"] = 15] = "Consumer_TraceNotification";
|
|
44
|
+
Body[Body["DataConsumer_MessageNotification"] = 16] = "DataConsumer_MessageNotification";
|
|
45
|
+
Body[Body["DataConsumer_BufferedAmountLowNotification"] = 17] = "DataConsumer_BufferedAmountLowNotification";
|
|
46
|
+
Body[Body["ActiveSpeakerObserver_DominantSpeakerNotification"] = 18] = "ActiveSpeakerObserver_DominantSpeakerNotification";
|
|
47
|
+
Body[Body["AudioLevelObserver_VolumesNotification"] = 19] = "AudioLevelObserver_VolumesNotification";
|
|
48
|
+
})(Body || (exports.Body = Body = {}));
|
|
49
|
+
function unionToBody(type, accessor) {
|
|
50
|
+
switch (Body[type]) {
|
|
51
|
+
case 'NONE': return null;
|
|
52
|
+
case 'Transport_TraceNotification': return accessor(new trace_notification_3.TraceNotification());
|
|
53
|
+
case 'Transport_SctpStateChangeNotification': return accessor(new sctp_state_change_notification_1.SctpStateChangeNotification());
|
|
54
|
+
case 'WebRtcTransport_IceSelectedTupleChangeNotification': return accessor(new ice_selected_tuple_change_notification_1.IceSelectedTupleChangeNotification());
|
|
55
|
+
case 'WebRtcTransport_IceStateChangeNotification': return accessor(new ice_state_change_notification_1.IceStateChangeNotification());
|
|
56
|
+
case 'WebRtcTransport_DtlsStateChangeNotification': return accessor(new dtls_state_change_notification_1.DtlsStateChangeNotification());
|
|
57
|
+
case 'PlainTransport_TupleNotification': return accessor(new tuple_notification_1.TupleNotification());
|
|
58
|
+
case 'PlainTransport_RtcpTupleNotification': return accessor(new rtcp_tuple_notification_1.RtcpTupleNotification());
|
|
59
|
+
case 'DirectTransport_RtcpNotification': return accessor(new rtcp_notification_1.RtcpNotification());
|
|
60
|
+
case 'Producer_ScoreNotification': return accessor(new score_notification_2.ScoreNotification());
|
|
61
|
+
case 'Producer_TraceNotification': return accessor(new trace_notification_2.TraceNotification());
|
|
62
|
+
case 'Producer_VideoOrientationChangeNotification': return accessor(new video_orientation_change_notification_1.VideoOrientationChangeNotification());
|
|
63
|
+
case 'Consumer_LayersChangeNotification': return accessor(new layers_change_notification_1.LayersChangeNotification());
|
|
64
|
+
case 'Consumer_RtpNotification': return accessor(new rtp_notification_1.RtpNotification());
|
|
65
|
+
case 'Consumer_ScoreNotification': return accessor(new score_notification_1.ScoreNotification());
|
|
66
|
+
case 'Consumer_TraceNotification': return accessor(new trace_notification_1.TraceNotification());
|
|
67
|
+
case 'DataConsumer_MessageNotification': return accessor(new message_notification_1.MessageNotification());
|
|
68
|
+
case 'DataConsumer_BufferedAmountLowNotification': return accessor(new buffered_amount_low_notification_1.BufferedAmountLowNotification());
|
|
69
|
+
case 'ActiveSpeakerObserver_DominantSpeakerNotification': return accessor(new dominant_speaker_notification_1.DominantSpeakerNotification());
|
|
70
|
+
case 'AudioLevelObserver_VolumesNotification': return accessor(new volumes_notification_1.VolumesNotification());
|
|
71
|
+
default: return null;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
function unionListToBody(type, accessor, index) {
|
|
75
|
+
switch (Body[type]) {
|
|
76
|
+
case 'NONE': return null;
|
|
77
|
+
case 'Transport_TraceNotification': return accessor(index, new trace_notification_3.TraceNotification());
|
|
78
|
+
case 'Transport_SctpStateChangeNotification': return accessor(index, new sctp_state_change_notification_1.SctpStateChangeNotification());
|
|
79
|
+
case 'WebRtcTransport_IceSelectedTupleChangeNotification': return accessor(index, new ice_selected_tuple_change_notification_1.IceSelectedTupleChangeNotification());
|
|
80
|
+
case 'WebRtcTransport_IceStateChangeNotification': return accessor(index, new ice_state_change_notification_1.IceStateChangeNotification());
|
|
81
|
+
case 'WebRtcTransport_DtlsStateChangeNotification': return accessor(index, new dtls_state_change_notification_1.DtlsStateChangeNotification());
|
|
82
|
+
case 'PlainTransport_TupleNotification': return accessor(index, new tuple_notification_1.TupleNotification());
|
|
83
|
+
case 'PlainTransport_RtcpTupleNotification': return accessor(index, new rtcp_tuple_notification_1.RtcpTupleNotification());
|
|
84
|
+
case 'DirectTransport_RtcpNotification': return accessor(index, new rtcp_notification_1.RtcpNotification());
|
|
85
|
+
case 'Producer_ScoreNotification': return accessor(index, new score_notification_2.ScoreNotification());
|
|
86
|
+
case 'Producer_TraceNotification': return accessor(index, new trace_notification_2.TraceNotification());
|
|
87
|
+
case 'Producer_VideoOrientationChangeNotification': return accessor(index, new video_orientation_change_notification_1.VideoOrientationChangeNotification());
|
|
88
|
+
case 'Consumer_LayersChangeNotification': return accessor(index, new layers_change_notification_1.LayersChangeNotification());
|
|
89
|
+
case 'Consumer_RtpNotification': return accessor(index, new rtp_notification_1.RtpNotification());
|
|
90
|
+
case 'Consumer_ScoreNotification': return accessor(index, new score_notification_1.ScoreNotification());
|
|
91
|
+
case 'Consumer_TraceNotification': return accessor(index, new trace_notification_1.TraceNotification());
|
|
92
|
+
case 'DataConsumer_MessageNotification': return accessor(index, new message_notification_1.MessageNotification());
|
|
93
|
+
case 'DataConsumer_BufferedAmountLowNotification': return accessor(index, new buffered_amount_low_notification_1.BufferedAmountLowNotification());
|
|
94
|
+
case 'ActiveSpeakerObserver_DominantSpeakerNotification': return accessor(index, new dominant_speaker_notification_1.DominantSpeakerNotification());
|
|
95
|
+
case 'AudioLevelObserver_VolumesNotification': return accessor(index, new volumes_notification_1.VolumesNotification());
|
|
96
|
+
default: return null;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
@@ -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 = {}));
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import * as flatbuffers from 'flatbuffers';
|
|
2
|
+
import { DominantSpeakerNotificationT } from '../../fbs/active-speaker-observer/dominant-speaker-notification';
|
|
3
|
+
import { VolumesNotificationT } from '../../fbs/audio-level-observer/volumes-notification';
|
|
4
|
+
import { LayersChangeNotificationT } from '../../fbs/consumer/layers-change-notification';
|
|
5
|
+
import { RtpNotificationT } from '../../fbs/consumer/rtp-notification';
|
|
6
|
+
import { ScoreNotificationT as FBS_Consumer_ScoreNotificationT } from '../../fbs/consumer/score-notification';
|
|
7
|
+
import { TraceNotificationT as FBS_Consumer_TraceNotificationT } from '../../fbs/consumer/trace-notification';
|
|
8
|
+
import { BufferedAmountLowNotificationT } from '../../fbs/data-consumer/buffered-amount-low-notification';
|
|
9
|
+
import { MessageNotificationT } from '../../fbs/data-consumer/message-notification';
|
|
10
|
+
import { RtcpNotificationT } from '../../fbs/direct-transport/rtcp-notification';
|
|
11
|
+
import { Body } from '../../fbs/notification-from-worker/body';
|
|
12
|
+
import { Event } from '../../fbs/notification-from-worker/event';
|
|
13
|
+
import { RtcpTupleNotificationT } from '../../fbs/plain-transport/rtcp-tuple-notification';
|
|
14
|
+
import { TupleNotificationT } from '../../fbs/plain-transport/tuple-notification';
|
|
15
|
+
import { ScoreNotificationT } from '../../fbs/producer/score-notification';
|
|
16
|
+
import { TraceNotificationT as FBS_Producer_TraceNotificationT } from '../../fbs/producer/trace-notification';
|
|
17
|
+
import { VideoOrientationChangeNotificationT } from '../../fbs/producer/video-orientation-change-notification';
|
|
18
|
+
import { SctpStateChangeNotificationT } from '../../fbs/transport/sctp-state-change-notification';
|
|
19
|
+
import { TraceNotificationT } from '../../fbs/transport/trace-notification';
|
|
20
|
+
import { DtlsStateChangeNotificationT } from '../../fbs/web-rtc-transport/dtls-state-change-notification';
|
|
21
|
+
import { IceSelectedTupleChangeNotificationT } from '../../fbs/web-rtc-transport/ice-selected-tuple-change-notification';
|
|
22
|
+
import { IceStateChangeNotificationT } from '../../fbs/web-rtc-transport/ice-state-change-notification';
|
|
23
|
+
export declare class Notification implements flatbuffers.IUnpackableObject<NotificationT> {
|
|
24
|
+
bb: flatbuffers.ByteBuffer | null;
|
|
25
|
+
bb_pos: number;
|
|
26
|
+
__init(i: number, bb: flatbuffers.ByteBuffer): Notification;
|
|
27
|
+
static getRootAsNotification(bb: flatbuffers.ByteBuffer, obj?: Notification): Notification;
|
|
28
|
+
static getSizePrefixedRootAsNotification(bb: flatbuffers.ByteBuffer, obj?: Notification): Notification;
|
|
29
|
+
handlerId(): string | null;
|
|
30
|
+
handlerId(optionalEncoding: flatbuffers.Encoding): string | Uint8Array | null;
|
|
31
|
+
event(): Event;
|
|
32
|
+
bodyType(): Body;
|
|
33
|
+
body<T extends flatbuffers.Table>(obj: any): any | null;
|
|
34
|
+
static startNotification(builder: flatbuffers.Builder): void;
|
|
35
|
+
static addHandlerId(builder: flatbuffers.Builder, handlerIdOffset: flatbuffers.Offset): void;
|
|
36
|
+
static addEvent(builder: flatbuffers.Builder, event: Event): void;
|
|
37
|
+
static addBodyType(builder: flatbuffers.Builder, bodyType: Body): void;
|
|
38
|
+
static addBody(builder: flatbuffers.Builder, bodyOffset: flatbuffers.Offset): void;
|
|
39
|
+
static endNotification(builder: flatbuffers.Builder): flatbuffers.Offset;
|
|
40
|
+
static createNotification(builder: flatbuffers.Builder, handlerIdOffset: flatbuffers.Offset, event: Event, bodyType: Body, bodyOffset: flatbuffers.Offset): flatbuffers.Offset;
|
|
41
|
+
unpack(): NotificationT;
|
|
42
|
+
unpackTo(_o: NotificationT): void;
|
|
43
|
+
}
|
|
44
|
+
export declare class NotificationT implements flatbuffers.IGeneratedObject {
|
|
45
|
+
handlerId: string | Uint8Array | null;
|
|
46
|
+
event: Event;
|
|
47
|
+
bodyType: Body;
|
|
48
|
+
body: BufferedAmountLowNotificationT | DominantSpeakerNotificationT | DtlsStateChangeNotificationT | FBS_Consumer_ScoreNotificationT | FBS_Consumer_TraceNotificationT | FBS_Producer_TraceNotificationT | IceSelectedTupleChangeNotificationT | IceStateChangeNotificationT | LayersChangeNotificationT | MessageNotificationT | RtcpNotificationT | RtcpTupleNotificationT | RtpNotificationT | ScoreNotificationT | SctpStateChangeNotificationT | TraceNotificationT | TupleNotificationT | VideoOrientationChangeNotificationT | VolumesNotificationT | null;
|
|
49
|
+
constructor(handlerId?: string | Uint8Array | null, event?: Event, bodyType?: Body, body?: BufferedAmountLowNotificationT | DominantSpeakerNotificationT | DtlsStateChangeNotificationT | FBS_Consumer_ScoreNotificationT | FBS_Consumer_TraceNotificationT | FBS_Producer_TraceNotificationT | IceSelectedTupleChangeNotificationT | IceStateChangeNotificationT | LayersChangeNotificationT | MessageNotificationT | RtcpNotificationT | RtcpTupleNotificationT | RtpNotificationT | ScoreNotificationT | SctpStateChangeNotificationT | TraceNotificationT | TupleNotificationT | VideoOrientationChangeNotificationT | VolumesNotificationT | null);
|
|
50
|
+
pack(builder: flatbuffers.Builder): flatbuffers.Offset;
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=notification.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification.d.ts","sourceRoot":"","sources":["../../../src/fbs/notification-from-worker/notification.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,WAAW,MAAM,aAAa,CAAC;AAE3C,OAAO,EAA+B,4BAA4B,EAAE,MAAM,iEAAiE,CAAC;AAC5I,OAAO,EAAuB,oBAAoB,EAAE,MAAM,qDAAqD,CAAC;AAChH,OAAO,EAA4B,yBAAyB,EAAE,MAAM,+CAA+C,CAAC;AACpH,OAAO,EAAmB,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACxF,OAAO,EAAuD,kBAAkB,IAAI,+BAA+B,EAAE,MAAM,uCAAuC,CAAC;AACnK,OAAO,EAAuD,kBAAkB,IAAI,+BAA+B,EAAE,MAAM,uCAAuC,CAAC;AACnK,OAAO,EAAiC,8BAA8B,EAAE,MAAM,0DAA0D,CAAC;AACzI,OAAO,EAAuB,oBA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AC,+BAA+B,GAAC,+BAA+B,GAAC,+BAA+B,GAAC,mCAAmC,GAAC,2BAA2B,GAAC,yBAAyB,GAAC,oBAAoB,GAAC,iBAAiB,GAAC,sBAAsB,GAAC,gBAAgB,GAAC,kBAAkB,GAAC,4BAA4B,GAAC,kBAAkB,GAAC,kBAAkB,GAAC,mCAAmC,GAAC,oBAAoB,GAAC,IAAI;gBAH3f,SAAS,GAAE,MAAM,GAAC,UAAU,GAAC,IAAW,EACxC,KAAK,GAAE,KAA4B,EACnC,QAAQ,GAAE,IAAgB,EAC1B,IAAI,GAAE,8BAA8B,GAAC,4BAA4B,GAAC,4BAA4B,GAAC,+BAA+B,GAAC,+BAA+B,GAAC,+BAA+B,GAAC,mCAAmC,GAAC,2BAA2B,GAAC,yBAAyB,GAAC,oBAAoB,GAAC,iBAAiB,GAAC,sBAAsB,GAAC,gBAAgB,GAAC,kBAAkB,GAAC,4BAA4B,GAAC,kBAAkB,GAAC,kBAAkB,GAAC,mCAAmC,GAAC,oBAAoB,GAAC,IAAW;IAI3gB,IAAI,CAAC,OAAO,EAAC,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,MAAM;CAWpD"}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// automatically generated by the FlatBuffers compiler, do not modify
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.NotificationT = exports.Notification = void 0;
|
|
38
|
+
const flatbuffers = __importStar(require("flatbuffers"));
|
|
39
|
+
const body_1 = require("../../fbs/notification-from-worker/body");
|
|
40
|
+
const event_1 = require("../../fbs/notification-from-worker/event");
|
|
41
|
+
class Notification {
|
|
42
|
+
bb = null;
|
|
43
|
+
bb_pos = 0;
|
|
44
|
+
__init(i, bb) {
|
|
45
|
+
this.bb_pos = i;
|
|
46
|
+
this.bb = bb;
|
|
47
|
+
return this;
|
|
48
|
+
}
|
|
49
|
+
static getRootAsNotification(bb, obj) {
|
|
50
|
+
return (obj || new Notification()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
51
|
+
}
|
|
52
|
+
static getSizePrefixedRootAsNotification(bb, obj) {
|
|
53
|
+
bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
|
|
54
|
+
return (obj || new Notification()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
|
|
55
|
+
}
|
|
56
|
+
handlerId(optionalEncoding) {
|
|
57
|
+
const offset = this.bb.__offset(this.bb_pos, 4);
|
|
58
|
+
return offset ? this.bb.__string(this.bb_pos + offset, optionalEncoding) : null;
|
|
59
|
+
}
|
|
60
|
+
event() {
|
|
61
|
+
const offset = this.bb.__offset(this.bb_pos, 6);
|
|
62
|
+
return offset ? this.bb.readUint8(this.bb_pos + offset) : event_1.Event.WORKER_RUNNING;
|
|
63
|
+
}
|
|
64
|
+
bodyType() {
|
|
65
|
+
const offset = this.bb.__offset(this.bb_pos, 8);
|
|
66
|
+
return offset ? this.bb.readUint8(this.bb_pos + offset) : body_1.Body.NONE;
|
|
67
|
+
}
|
|
68
|
+
body(obj) {
|
|
69
|
+
const offset = this.bb.__offset(this.bb_pos, 10);
|
|
70
|
+
return offset ? this.bb.__union(obj, this.bb_pos + offset) : null;
|
|
71
|
+
}
|
|
72
|
+
static startNotification(builder) {
|
|
73
|
+
builder.startObject(4);
|
|
74
|
+
}
|
|
75
|
+
static addHandlerId(builder, handlerIdOffset) {
|
|
76
|
+
builder.addFieldOffset(0, handlerIdOffset, 0);
|
|
77
|
+
}
|
|
78
|
+
static addEvent(builder, event) {
|
|
79
|
+
builder.addFieldInt8(1, event, event_1.Event.WORKER_RUNNING);
|
|
80
|
+
}
|
|
81
|
+
static addBodyType(builder, bodyType) {
|
|
82
|
+
builder.addFieldInt8(2, bodyType, body_1.Body.NONE);
|
|
83
|
+
}
|
|
84
|
+
static addBody(builder, bodyOffset) {
|
|
85
|
+
builder.addFieldOffset(3, bodyOffset, 0);
|
|
86
|
+
}
|
|
87
|
+
static endNotification(builder) {
|
|
88
|
+
const offset = builder.endObject();
|
|
89
|
+
builder.requiredField(offset, 4); // handler_id
|
|
90
|
+
return offset;
|
|
91
|
+
}
|
|
92
|
+
static createNotification(builder, handlerIdOffset, event, bodyType, bodyOffset) {
|
|
93
|
+
Notification.startNotification(builder);
|
|
94
|
+
Notification.addHandlerId(builder, handlerIdOffset);
|
|
95
|
+
Notification.addEvent(builder, event);
|
|
96
|
+
Notification.addBodyType(builder, bodyType);
|
|
97
|
+
Notification.addBody(builder, bodyOffset);
|
|
98
|
+
return Notification.endNotification(builder);
|
|
99
|
+
}
|
|
100
|
+
unpack() {
|
|
101
|
+
return new NotificationT(this.handlerId(), this.event(), this.bodyType(), (() => {
|
|
102
|
+
const temp = (0, body_1.unionToBody)(this.bodyType(), this.body.bind(this));
|
|
103
|
+
if (temp === null) {
|
|
104
|
+
return null;
|
|
105
|
+
}
|
|
106
|
+
return temp.unpack();
|
|
107
|
+
})());
|
|
108
|
+
}
|
|
109
|
+
unpackTo(_o) {
|
|
110
|
+
_o.handlerId = this.handlerId();
|
|
111
|
+
_o.event = this.event();
|
|
112
|
+
_o.bodyType = this.bodyType();
|
|
113
|
+
_o.body = (() => {
|
|
114
|
+
const temp = (0, body_1.unionToBody)(this.bodyType(), this.body.bind(this));
|
|
115
|
+
if (temp === null) {
|
|
116
|
+
return null;
|
|
117
|
+
}
|
|
118
|
+
return temp.unpack();
|
|
119
|
+
})();
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
exports.Notification = Notification;
|
|
123
|
+
class NotificationT {
|
|
124
|
+
handlerId;
|
|
125
|
+
event;
|
|
126
|
+
bodyType;
|
|
127
|
+
body;
|
|
128
|
+
constructor(handlerId = null, event = event_1.Event.WORKER_RUNNING, bodyType = body_1.Body.NONE, body = null) {
|
|
129
|
+
this.handlerId = handlerId;
|
|
130
|
+
this.event = event;
|
|
131
|
+
this.bodyType = bodyType;
|
|
132
|
+
this.body = body;
|
|
133
|
+
}
|
|
134
|
+
pack(builder) {
|
|
135
|
+
const handlerId = (this.handlerId !== null ? builder.createString(this.handlerId) : 0);
|
|
136
|
+
const body = builder.createObjectOffset(this.body);
|
|
137
|
+
return Notification.createNotification(builder, handlerId, this.event, this.bodyType, body);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
exports.NotificationT = NotificationT;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification-from-worker.d.ts","sourceRoot":"","sources":["../../src/fbs/notification-from-worker.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,iCAAiC,CAAC;AACvD,OAAO,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// automatically generated by the FlatBuffers compiler, do not modify
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.NotificationT = exports.Notification = exports.Event = exports.Body = void 0;
|
|
5
|
+
var body_1 = require("./notification-from-worker/body");
|
|
6
|
+
Object.defineProperty(exports, "Body", { enumerable: true, get: function () { return body_1.Body; } });
|
|
7
|
+
var event_1 = require("./notification-from-worker/event");
|
|
8
|
+
Object.defineProperty(exports, "Event", { enumerable: true, get: function () { return event_1.Event; } });
|
|
9
|
+
var notification_1 = require("./notification-from-worker/notification");
|
|
10
|
+
Object.defineProperty(exports, "Notification", { enumerable: true, get: function () { return notification_1.Notification; } });
|
|
11
|
+
Object.defineProperty(exports, "NotificationT", { enumerable: true, get: function () { return notification_1.NotificationT; } });
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SendNotification as FBS_DataProducer_SendNotification } from '../../fbs/data-producer/send-notification';
|
|
2
|
+
import { SendNotification } from '../../fbs/producer/send-notification';
|
|
3
|
+
import { SendRtcpNotification } from '../../fbs/transport/send-rtcp-notification';
|
|
4
|
+
export declare enum Body {
|
|
5
|
+
NONE = 0,
|
|
6
|
+
Transport_SendRtcpNotification = 1,
|
|
7
|
+
Producer_SendNotification = 2,
|
|
8
|
+
DataProducer_SendNotification = 3
|
|
9
|
+
}
|
|
10
|
+
export declare function unionToBody(type: Body, accessor: (obj: FBS_DataProducer_SendNotification | SendNotification | SendRtcpNotification) => FBS_DataProducer_SendNotification | SendNotification | SendRtcpNotification | null): FBS_DataProducer_SendNotification | SendNotification | SendRtcpNotification | null;
|
|
11
|
+
export declare function unionListToBody(type: Body, accessor: (index: number, obj: FBS_DataProducer_SendNotification | SendNotification | SendRtcpNotification) => FBS_DataProducer_SendNotification | SendNotification | SendRtcpNotification | null, index: number): FBS_DataProducer_SendNotification | SendNotification | SendRtcpNotification | null;
|
|
12
|
+
//# sourceMappingURL=body.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"body.d.ts","sourceRoot":"","sources":["../../../src/fbs/notification-to-worker/body.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,IAAI,iCAAiC,EAA2D,MAAM,2CAA2C,CAAC;AAC3K,OAAO,EAAE,gBAAgB,EAAqB,MAAM,sCAAsC,CAAC;AAC3F,OAAO,EAAE,oBAAoB,EAAyB,MAAM,4CAA4C,CAAC;AAGzG,oBAAY,IAAI;IACd,IAAI,IAAI;IACR,8BAA8B,IAAI;IAClC,yBAAyB,IAAI;IAC7B,6BAA6B,IAAI;CAClC;AAED,wBAAgB,WAAW,CACzB,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,CAAC,GAAG,EAAC,iCAAiC,GAAC,gBAAgB,GAAC,oBAAoB,KAAK,iCAAiC,GAAC,gBAAgB,GAAC,oBAAoB,GAAC,IAAI,GACtK,iCAAiC,GAAC,gBAAgB,GAAC,oBAAoB,GAAC,IAAI,CAQ9E;AAED,wBAAgB,eAAe,CAC7B,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAC,iCAAiC,GAAC,gBAAgB,GAAC,oBAAoB,KAAK,iCAAiC,GAAC,gBAAgB,GAAC,oBAAoB,GAAC,IAAI,EACtL,KAAK,EAAE,MAAM,GACZ,iCAAiC,GAAC,gBAAgB,GAAC,oBAAoB,GAAC,IAAI,CAQ9E"}
|
|
@@ -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.Body = void 0;
|
|
5
|
+
exports.unionToBody = unionToBody;
|
|
6
|
+
exports.unionListToBody = unionListToBody;
|
|
7
|
+
const send_notification_1 = require("../../fbs/data-producer/send-notification");
|
|
8
|
+
const send_notification_2 = require("../../fbs/producer/send-notification");
|
|
9
|
+
const send_rtcp_notification_1 = require("../../fbs/transport/send-rtcp-notification");
|
|
10
|
+
var Body;
|
|
11
|
+
(function (Body) {
|
|
12
|
+
Body[Body["NONE"] = 0] = "NONE";
|
|
13
|
+
Body[Body["Transport_SendRtcpNotification"] = 1] = "Transport_SendRtcpNotification";
|
|
14
|
+
Body[Body["Producer_SendNotification"] = 2] = "Producer_SendNotification";
|
|
15
|
+
Body[Body["DataProducer_SendNotification"] = 3] = "DataProducer_SendNotification";
|
|
16
|
+
})(Body || (exports.Body = Body = {}));
|
|
17
|
+
function unionToBody(type, accessor) {
|
|
18
|
+
switch (Body[type]) {
|
|
19
|
+
case 'NONE': return null;
|
|
20
|
+
case 'Transport_SendRtcpNotification': return accessor(new send_rtcp_notification_1.SendRtcpNotification());
|
|
21
|
+
case 'Producer_SendNotification': return accessor(new send_notification_2.SendNotification());
|
|
22
|
+
case 'DataProducer_SendNotification': return accessor(new send_notification_1.SendNotification());
|
|
23
|
+
default: return null;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
function unionListToBody(type, accessor, index) {
|
|
27
|
+
switch (Body[type]) {
|
|
28
|
+
case 'NONE': return null;
|
|
29
|
+
case 'Transport_SendRtcpNotification': return accessor(index, new send_rtcp_notification_1.SendRtcpNotification());
|
|
30
|
+
case 'Producer_SendNotification': return accessor(index, new send_notification_2.SendNotification());
|
|
31
|
+
case 'DataProducer_SendNotification': return accessor(index, new send_notification_1.SendNotification());
|
|
32
|
+
default: return null;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../../src/fbs/notification-to-worker/event.ts"],"names":[],"mappings":"AAEA,oBAAY,KAAK;IACf,mBAAmB,IAAI;IACvB,aAAa,IAAI;IACjB,iBAAiB,IAAI;CACtB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
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["TRANSPORT_SEND_RTCP"] = 0] = "TRANSPORT_SEND_RTCP";
|
|
8
|
+
Event[Event["PRODUCER_SEND"] = 1] = "PRODUCER_SEND";
|
|
9
|
+
Event[Event["DATAPRODUCER_SEND"] = 2] = "DATAPRODUCER_SEND";
|
|
10
|
+
})(Event || (exports.Event = Event = {}));
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as flatbuffers from 'flatbuffers';
|
|
2
|
+
import { SendNotificationT as FBS_DataProducer_SendNotificationT } from '../../fbs/data-producer/send-notification';
|
|
3
|
+
import { Body } from '../../fbs/notification-to-worker/body';
|
|
4
|
+
import { Event } from '../../fbs/notification-to-worker/event';
|
|
5
|
+
import { SendNotificationT } from '../../fbs/producer/send-notification';
|
|
6
|
+
import { SendRtcpNotificationT } from '../../fbs/transport/send-rtcp-notification';
|
|
7
|
+
export declare class Notification implements flatbuffers.IUnpackableObject<NotificationT> {
|
|
8
|
+
bb: flatbuffers.ByteBuffer | null;
|
|
9
|
+
bb_pos: number;
|
|
10
|
+
__init(i: number, bb: flatbuffers.ByteBuffer): Notification;
|
|
11
|
+
static getRootAsNotification(bb: flatbuffers.ByteBuffer, obj?: Notification): Notification;
|
|
12
|
+
static getSizePrefixedRootAsNotification(bb: flatbuffers.ByteBuffer, obj?: Notification): Notification;
|
|
13
|
+
handlerId(): string | null;
|
|
14
|
+
handlerId(optionalEncoding: flatbuffers.Encoding): string | Uint8Array | null;
|
|
15
|
+
event(): Event;
|
|
16
|
+
bodyType(): Body;
|
|
17
|
+
body<T extends flatbuffers.Table>(obj: any): any | null;
|
|
18
|
+
static startNotification(builder: flatbuffers.Builder): void;
|
|
19
|
+
static addHandlerId(builder: flatbuffers.Builder, handlerIdOffset: flatbuffers.Offset): void;
|
|
20
|
+
static addEvent(builder: flatbuffers.Builder, event: Event): void;
|
|
21
|
+
static addBodyType(builder: flatbuffers.Builder, bodyType: Body): void;
|
|
22
|
+
static addBody(builder: flatbuffers.Builder, bodyOffset: flatbuffers.Offset): void;
|
|
23
|
+
static endNotification(builder: flatbuffers.Builder): flatbuffers.Offset;
|
|
24
|
+
static createNotification(builder: flatbuffers.Builder, handlerIdOffset: flatbuffers.Offset, event: Event, bodyType: Body, bodyOffset: flatbuffers.Offset): flatbuffers.Offset;
|
|
25
|
+
unpack(): NotificationT;
|
|
26
|
+
unpackTo(_o: NotificationT): void;
|
|
27
|
+
}
|
|
28
|
+
export declare class NotificationT implements flatbuffers.IGeneratedObject {
|
|
29
|
+
handlerId: string | Uint8Array | null;
|
|
30
|
+
event: Event;
|
|
31
|
+
bodyType: Body;
|
|
32
|
+
body: FBS_DataProducer_SendNotificationT | SendNotificationT | SendRtcpNotificationT | null;
|
|
33
|
+
constructor(handlerId?: string | Uint8Array | null, event?: Event, bodyType?: Body, body?: FBS_DataProducer_SendNotificationT | SendNotificationT | SendRtcpNotificationT | null);
|
|
34
|
+
pack(builder: flatbuffers.Builder): flatbuffers.Offset;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=notification.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification.d.ts","sourceRoot":"","sources":["../../../src/fbs/notification-to-worker/notification.ts"],"names":[],"mappings":"AAEA,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