werift 0.22.0 → 0.22.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/lib/common/src/binary.d.ts +6 -6
- package/lib/common/src/event.d.ts +1 -0
- package/lib/common/src/event.js +5 -0
- package/lib/common/src/event.js.map +1 -1
- package/lib/common/src/log.d.ts +1 -2
- package/lib/common/src/transport.d.ts +2 -1
- package/lib/common/src/transport.js +28 -14
- package/lib/common/src/transport.js.map +1 -1
- package/lib/dtls/src/cipher/prf.d.ts +12 -12
- package/lib/dtls/src/cipher/suites/aead.d.ts +3 -2
- package/lib/dtls/src/cipher/suites/aead.js +31 -38
- package/lib/dtls/src/cipher/suites/aead.js.map +1 -1
- package/lib/dtls/src/context/cipher.d.ts +4 -4
- package/lib/dtls/src/context/cipher.js +21 -10
- package/lib/dtls/src/context/cipher.js.map +1 -1
- package/lib/dtls/src/context/srtp.d.ts +3 -3
- package/lib/dtls/src/context/srtp.js.map +1 -1
- package/lib/dtls/src/flight/client/flight5.js.map +1 -1
- package/lib/dtls/src/flight/server/flight2.js.map +1 -1
- package/lib/dtls/src/handshake/extensions/ellipticCurves.d.ts +1 -1
- package/lib/dtls/src/handshake/extensions/renegotiationIndication.d.ts +2 -2
- package/lib/dtls/src/handshake/extensions/signature.d.ts +2 -2
- package/lib/dtls/src/handshake/extensions/useSrtp.d.ts +1 -1
- package/lib/dtls/src/handshake/message/alert.d.ts +1 -1
- package/lib/dtls/src/handshake/message/certificate.d.ts +1 -1
- package/lib/dtls/src/handshake/message/changeCipherSpec.d.ts +1 -1
- package/lib/dtls/src/handshake/message/client/certificateVerify.d.ts +1 -1
- package/lib/dtls/src/handshake/message/client/hello.d.ts +1 -1
- package/lib/dtls/src/handshake/message/client/keyExchange.d.ts +1 -1
- package/lib/dtls/src/handshake/message/finished.d.ts +1 -1
- package/lib/dtls/src/handshake/message/server/certificateRequest.d.ts +1 -1
- package/lib/dtls/src/handshake/message/server/hello.d.ts +1 -1
- package/lib/dtls/src/handshake/message/server/helloDone.d.ts +1 -1
- package/lib/dtls/src/handshake/message/server/helloVerifyRequest.d.ts +1 -1
- package/lib/dtls/src/handshake/message/server/keyExchange.d.ts +1 -1
- package/lib/dtls/src/handshake/random.d.ts +3 -3
- package/lib/dtls/src/record/message/fragment.d.ts +1 -1
- package/lib/dtls/src/record/message/header.d.ts +2 -19
- package/lib/dtls/src/record/message/header.js +1 -60
- package/lib/dtls/src/record/message/header.js.map +1 -1
- package/lib/dtls/src/record/message/plaintext.d.ts +6 -27
- package/lib/dtls/src/record/message/plaintext.js +34 -16
- package/lib/dtls/src/record/message/plaintext.js.map +1 -1
- package/lib/dtls/src/socket.d.ts +4 -4
- package/lib/dtls/src/socket.js.map +1 -1
- package/lib/dtls/src/util/binary.d.ts +1 -1
- package/lib/ice/src/helper.d.ts +1 -1
- package/lib/ice/src/ice.d.ts +4 -3
- package/lib/ice/src/ice.js +89 -68
- package/lib/ice/src/ice.js.map +1 -1
- package/lib/ice/src/iceBase.d.ts +20 -1
- package/lib/ice/src/iceBase.js +46 -0
- package/lib/ice/src/iceBase.js.map +1 -1
- package/lib/ice/src/stun/attributes.d.ts +2 -2
- package/lib/ice/src/stun/attributes.js +47 -27
- package/lib/ice/src/stun/attributes.js.map +1 -1
- package/lib/ice/src/stun/message.d.ts +2 -2
- package/lib/ice/src/stun/message.js +21 -23
- package/lib/ice/src/stun/message.js.map +1 -1
- package/lib/ice/src/stun/protocol.d.ts +2 -2
- package/lib/ice/src/turn/protocol.d.ts +2 -2
- package/lib/index.mjs +2252 -1474
- package/lib/nonstandard/index.mjs +333 -370
- package/lib/rtp/src/codec/av1.d.ts +2 -2
- package/lib/rtp/src/codec/opus.d.ts +1 -1
- package/lib/rtp/src/extra/container/mp4/container.js +18 -8
- package/lib/rtp/src/extra/container/mp4/container.js.map +1 -1
- package/lib/rtp/src/extra/container/mp4/h264.d.ts +2 -2
- package/lib/rtp/src/extra/container/mp4/sps-parser.d.ts +1 -1
- package/lib/rtp/src/extra/container/ogg/parser.d.ts +1 -1
- package/lib/rtp/src/extra/container/webm/container.d.ts +7 -7
- package/lib/rtp/src/extra/container/webm/container.js +17 -7
- package/lib/rtp/src/extra/container/webm/container.js.map +1 -1
- package/lib/rtp/src/extra/container/webm/ebml/ebml.d.ts +1 -1
- package/lib/rtp/src/extra/container/webm/ebml/id.d.ts +222 -222
- package/lib/rtp/src/extra/processor/depacketizerCallback.d.ts +1 -1
- package/lib/rtp/src/extra/processor/depacketizerTransformer.d.ts +6 -1
- package/lib/rtp/src/extra/processor/dtxCallback.d.ts +1 -1
- package/lib/rtp/src/extra/processor/interface.d.ts +1 -1
- package/lib/rtp/src/extra/processor/jitterBufferCallback.d.ts +1 -1
- package/lib/rtp/src/extra/processor/mp4.js +3 -0
- package/lib/rtp/src/extra/processor/mp4.js.map +1 -1
- package/lib/rtp/src/extra/processor/nackHandlerCallback.d.ts +1 -1
- package/lib/rtp/src/extra/processor/ntpTimeCallback.d.ts +1 -1
- package/lib/rtp/src/extra/processor/rtpTimeCallback.d.ts +1 -1
- package/lib/rtp/src/extra/processor/webm.d.ts +1 -1
- package/lib/rtp/src/extra/processor/webmCallback.d.ts +1 -1
- package/lib/rtp/src/extra/processor/webmCallback.js +23 -17
- package/lib/rtp/src/extra/processor/webmCallback.js.map +1 -1
- package/lib/rtp/src/helper.d.ts +1 -1
- package/lib/rtp/src/rtcp/header.d.ts +1 -1
- package/lib/rtp/src/rtcp/psfb/fullIntraRequest.d.ts +1 -1
- package/lib/rtp/src/rtcp/psfb/index.d.ts +1 -1
- package/lib/rtp/src/rtcp/psfb/pictureLossIndication.d.ts +1 -1
- package/lib/rtp/src/rtcp/psfb/remb.d.ts +1 -1
- package/lib/rtp/src/rtcp/rr.d.ts +2 -2
- package/lib/rtp/src/rtcp/rtcp.d.ts +1 -1
- package/lib/rtp/src/rtcp/rtpfb/index.d.ts +1 -1
- package/lib/rtp/src/rtcp/rtpfb/nack.d.ts +1 -1
- package/lib/rtp/src/rtcp/rtpfb/twcc.d.ts +4 -4
- package/lib/rtp/src/rtcp/sdes.d.ts +3 -3
- package/lib/rtp/src/rtcp/sr.d.ts +2 -2
- package/lib/rtp/src/rtp/headerExtension.d.ts +6 -6
- package/lib/rtp/src/rtp/red/packet.d.ts +2 -2
- package/lib/rtp/src/rtp/rtp.d.ts +2 -2
- package/lib/rtp/src/srtp/cipher/ctr.d.ts +4 -4
- package/lib/rtp/src/srtp/cipher/gcm.d.ts +4 -4
- package/lib/rtp/src/srtp/const.d.ts +3 -3
- package/lib/rtp/src/srtp/const.js.map +1 -1
- package/lib/rtp/src/srtp/context/context.d.ts +7 -7
- package/lib/rtp/src/srtp/context/context.js +10 -4
- package/lib/rtp/src/srtp/context/context.js.map +1 -1
- package/lib/rtp/src/srtp/context/srtcp.d.ts +3 -3
- package/lib/rtp/src/srtp/context/srtcp.js.map +1 -1
- package/lib/rtp/src/srtp/context/srtp.d.ts +3 -3
- package/lib/rtp/src/srtp/context/srtp.js.map +1 -1
- package/lib/rtp/src/srtp/srtcp.d.ts +2 -2
- package/lib/rtp/src/srtp/srtp.d.ts +2 -2
- package/lib/sctp/src/chunk.d.ts +12 -12
- package/lib/sctp/src/chunk.js +87 -66
- package/lib/sctp/src/chunk.js.map +1 -1
- package/lib/sctp/src/param.d.ts +3 -3
- package/lib/sctp/src/sctp.d.ts +3 -1
- package/lib/sctp/src/sctp.js +36 -1
- package/lib/sctp/src/sctp.js.map +1 -1
- package/lib/webrtc/src/dataChannel.d.ts +15 -4
- package/lib/webrtc/src/dataChannel.js +42 -7
- package/lib/webrtc/src/dataChannel.js.map +1 -1
- package/lib/webrtc/src/index.d.ts +1 -0
- package/lib/webrtc/src/index.js +1 -0
- package/lib/webrtc/src/index.js.map +1 -1
- package/lib/webrtc/src/media/index.d.ts +1 -0
- package/lib/webrtc/src/media/index.js +1 -0
- package/lib/webrtc/src/media/index.js.map +1 -1
- package/lib/webrtc/src/media/parameters.d.ts +2 -2
- package/lib/webrtc/src/media/parameters.js.map +1 -1
- package/lib/webrtc/src/media/router.js +2 -1
- package/lib/webrtc/src/media/router.js.map +1 -1
- package/lib/webrtc/src/media/rtpReceiver.d.ts +2 -2
- package/lib/webrtc/src/media/rtpReceiver.js +51 -2
- package/lib/webrtc/src/media/rtpReceiver.js.map +1 -1
- package/lib/webrtc/src/media/rtpSender.d.ts +6 -0
- package/lib/webrtc/src/media/rtpSender.js +78 -7
- package/lib/webrtc/src/media/rtpSender.js.map +1 -1
- package/lib/webrtc/src/media/rtpTransceiver.d.ts +12 -9
- package/lib/webrtc/src/media/rtpTransceiver.js +45 -8
- package/lib/webrtc/src/media/rtpTransceiver.js.map +1 -1
- package/lib/webrtc/src/media/stats.d.ts +279 -0
- package/lib/webrtc/src/media/stats.js +35 -1
- package/lib/webrtc/src/media/stats.js.map +1 -1
- package/lib/webrtc/src/peerConnection.d.ts +34 -64
- package/lib/webrtc/src/peerConnection.js +319 -986
- package/lib/webrtc/src/peerConnection.js.map +1 -1
- package/lib/webrtc/src/sctpManager.d.ts +27 -0
- package/lib/webrtc/src/sctpManager.js +147 -0
- package/lib/webrtc/src/sctpManager.js.map +1 -0
- package/lib/webrtc/src/sdp.d.ts +3 -2
- package/lib/webrtc/src/sdp.js +17 -7
- package/lib/webrtc/src/sdp.js.map +1 -1
- package/lib/webrtc/src/sdpManager.d.ts +78 -0
- package/lib/webrtc/src/sdpManager.js +391 -0
- package/lib/webrtc/src/sdpManager.js.map +1 -0
- package/lib/webrtc/src/secureTransportManager.d.ts +56 -0
- package/lib/webrtc/src/secureTransportManager.js +345 -0
- package/lib/webrtc/src/secureTransportManager.js.map +1 -0
- package/lib/webrtc/src/transceiverManager.d.ts +40 -0
- package/lib/webrtc/src/transceiverManager.js +355 -0
- package/lib/webrtc/src/transceiverManager.js.map +1 -0
- package/lib/webrtc/src/transport/dtls.d.ts +18 -6
- package/lib/webrtc/src/transport/dtls.js +119 -11
- package/lib/webrtc/src/transport/dtls.js.map +1 -1
- package/lib/webrtc/src/transport/ice.d.ts +24 -0
- package/lib/webrtc/src/transport/ice.js +86 -0
- package/lib/webrtc/src/transport/ice.js.map +1 -1
- package/lib/webrtc/src/transport/sctp.js +22 -7
- package/lib/webrtc/src/transport/sctp.js.map +1 -1
- package/lib/webrtc/src/utils.d.ts +3 -3
- package/lib/webrtc/src/utils.js.map +1 -1
- package/package.json +15 -21
|
@@ -2,226 +2,226 @@
|
|
|
2
2
|
* @see https://www.matroska.org/technical/specs/index.html
|
|
3
3
|
*/
|
|
4
4
|
export declare const ID: {
|
|
5
|
-
EBML: Uint8Array
|
|
6
|
-
EBMLVersion: Uint8Array
|
|
7
|
-
EBMLReadVersion: Uint8Array
|
|
8
|
-
EBMLMaxIDLength: Uint8Array
|
|
9
|
-
EBMLMaxSizeLength: Uint8Array
|
|
10
|
-
DocType: Uint8Array
|
|
11
|
-
DocTypeVersion: Uint8Array
|
|
12
|
-
DocTypeReadVersion: Uint8Array
|
|
13
|
-
Void: Uint8Array
|
|
14
|
-
CRC32: Uint8Array
|
|
15
|
-
Segment: Uint8Array
|
|
16
|
-
SeekHead: Uint8Array
|
|
17
|
-
Seek: Uint8Array
|
|
18
|
-
SeekID: Uint8Array
|
|
19
|
-
SeekPosition: Uint8Array
|
|
20
|
-
Info: Uint8Array
|
|
21
|
-
SegmentUID: Uint8Array
|
|
22
|
-
SegmentFilename: Uint8Array
|
|
23
|
-
PrevUID: Uint8Array
|
|
24
|
-
PrevFilename: Uint8Array
|
|
25
|
-
NextUID: Uint8Array
|
|
26
|
-
NextFilename: Uint8Array
|
|
27
|
-
SegmentFamily: Uint8Array
|
|
28
|
-
ChapterTranslate: Uint8Array
|
|
29
|
-
ChapterTranslateEditionUID: Uint8Array
|
|
30
|
-
ChapterTranslateCodec: Uint8Array
|
|
31
|
-
ChapterTranslateID: Uint8Array
|
|
32
|
-
TimecodeScale: Uint8Array
|
|
33
|
-
Duration: Uint8Array
|
|
34
|
-
DateUTC: Uint8Array
|
|
35
|
-
Title: Uint8Array
|
|
36
|
-
MuxingApp: Uint8Array
|
|
37
|
-
WritingApp: Uint8Array
|
|
38
|
-
Cluster: Uint8Array
|
|
39
|
-
Timecode: Uint8Array
|
|
40
|
-
SilentTracks: Uint8Array
|
|
41
|
-
SilentTrackNumber: Uint8Array
|
|
42
|
-
Position: Uint8Array
|
|
43
|
-
PrevSize: Uint8Array
|
|
44
|
-
SimpleBlock: Uint8Array
|
|
45
|
-
BlockGroup: Uint8Array
|
|
46
|
-
Block: Uint8Array
|
|
47
|
-
BlockAdditions: Uint8Array
|
|
48
|
-
BlockMore: Uint8Array
|
|
49
|
-
BlockAddID: Uint8Array
|
|
50
|
-
BlockAdditional: Uint8Array
|
|
51
|
-
BlockDuration: Uint8Array
|
|
52
|
-
ReferencePriority: Uint8Array
|
|
53
|
-
ReferenceBlock: Uint8Array
|
|
54
|
-
CodecState: Uint8Array
|
|
55
|
-
DiscardPadding: Uint8Array
|
|
56
|
-
Slices: Uint8Array
|
|
57
|
-
TimeSlice: Uint8Array
|
|
58
|
-
LaceNumber: Uint8Array
|
|
59
|
-
Tracks: Uint8Array
|
|
60
|
-
TrackEntry: Uint8Array
|
|
61
|
-
TrackNumber: Uint8Array
|
|
62
|
-
TrackUID: Uint8Array
|
|
63
|
-
TrackType: Uint8Array
|
|
64
|
-
FlagEnabled: Uint8Array
|
|
65
|
-
FlagDefault: Uint8Array
|
|
66
|
-
FlagForced: Uint8Array
|
|
67
|
-
FlagLacing: Uint8Array
|
|
68
|
-
MinCache: Uint8Array
|
|
69
|
-
MaxCache: Uint8Array
|
|
70
|
-
DefaultDuration: Uint8Array
|
|
71
|
-
DefaultDecodedFieldDuration: Uint8Array
|
|
72
|
-
MaxBlockAdditionID: Uint8Array
|
|
73
|
-
Name: Uint8Array
|
|
74
|
-
Language: Uint8Array
|
|
75
|
-
CodecID: Uint8Array
|
|
76
|
-
CodecPrivate: Uint8Array
|
|
77
|
-
CodecName: Uint8Array
|
|
78
|
-
AttachmentLink: Uint8Array
|
|
79
|
-
CodecDecodeAll: Uint8Array
|
|
80
|
-
TrackOverlay: Uint8Array
|
|
81
|
-
CodecDelay: Uint8Array
|
|
82
|
-
SeekPreRoll: Uint8Array
|
|
83
|
-
TrackTranslate: Uint8Array
|
|
84
|
-
TrackTranslateEditionUID: Uint8Array
|
|
85
|
-
TrackTranslateCodec: Uint8Array
|
|
86
|
-
TrackTranslateTrackID: Uint8Array
|
|
87
|
-
Video: Uint8Array
|
|
88
|
-
FlagInterlaced: Uint8Array
|
|
89
|
-
FieldOrder: Uint8Array
|
|
90
|
-
StereoMode: Uint8Array
|
|
91
|
-
AlphaMode: Uint8Array
|
|
92
|
-
PixelWidth: Uint8Array
|
|
93
|
-
PixelHeight: Uint8Array
|
|
94
|
-
PixelCropBottom: Uint8Array
|
|
95
|
-
PixelCropTop: Uint8Array
|
|
96
|
-
PixelCropLeft: Uint8Array
|
|
97
|
-
PixelCropRight: Uint8Array
|
|
98
|
-
DisplayWidth: Uint8Array
|
|
99
|
-
DisplayHeight: Uint8Array
|
|
100
|
-
DisplayUnit: Uint8Array
|
|
101
|
-
AspectRatioType: Uint8Array
|
|
102
|
-
ColourSpace: Uint8Array
|
|
103
|
-
Colour: Uint8Array
|
|
104
|
-
MatrixCoefficients: Uint8Array
|
|
105
|
-
BitsPerChannel: Uint8Array
|
|
106
|
-
ChromaSubsamplingHorz: Uint8Array
|
|
107
|
-
ChromaSubsamplingVert: Uint8Array
|
|
108
|
-
CbSubsamplingHorz: Uint8Array
|
|
109
|
-
CbSubsamplingVert: Uint8Array
|
|
110
|
-
ChromaSitingHorz: Uint8Array
|
|
111
|
-
ChromaSitingVert: Uint8Array
|
|
112
|
-
Range: Uint8Array
|
|
113
|
-
TransferCharacteristics: Uint8Array
|
|
114
|
-
Primaries: Uint8Array
|
|
115
|
-
MaxCLL: Uint8Array
|
|
116
|
-
MaxFALL: Uint8Array
|
|
117
|
-
MasteringMetadata: Uint8Array
|
|
118
|
-
PrimaryRChromaticityX: Uint8Array
|
|
119
|
-
PrimaryRChromaticityY: Uint8Array
|
|
120
|
-
PrimaryGChromaticityX: Uint8Array
|
|
121
|
-
PrimaryGChromaticityY: Uint8Array
|
|
122
|
-
PrimaryBChromaticityX: Uint8Array
|
|
123
|
-
PrimaryBChromaticityY: Uint8Array
|
|
124
|
-
WhitePointChromaticityX: Uint8Array
|
|
125
|
-
WhitePointChromaticityY: Uint8Array
|
|
126
|
-
LuminanceMax: Uint8Array
|
|
127
|
-
LuminanceMin: Uint8Array
|
|
128
|
-
Audio: Uint8Array
|
|
129
|
-
SamplingFrequency: Uint8Array
|
|
130
|
-
OutputSamplingFrequency: Uint8Array
|
|
131
|
-
Channels: Uint8Array
|
|
132
|
-
BitDepth: Uint8Array
|
|
133
|
-
TrackOperation: Uint8Array
|
|
134
|
-
TrackCombinePlanes: Uint8Array
|
|
135
|
-
TrackPlane: Uint8Array
|
|
136
|
-
TrackPlaneUID: Uint8Array
|
|
137
|
-
TrackPlaneType: Uint8Array
|
|
138
|
-
TrackJoinBlocks: Uint8Array
|
|
139
|
-
TrackJoinUID: Uint8Array
|
|
140
|
-
ContentEncodings: Uint8Array
|
|
141
|
-
ContentEncoding: Uint8Array
|
|
142
|
-
ContentEncodingOrder: Uint8Array
|
|
143
|
-
ContentEncodingScope: Uint8Array
|
|
144
|
-
ContentEncodingType: Uint8Array
|
|
145
|
-
ContentCompression: Uint8Array
|
|
146
|
-
ContentCompAlgo: Uint8Array
|
|
147
|
-
ContentCompSettings: Uint8Array
|
|
148
|
-
ContentEncryption: Uint8Array
|
|
149
|
-
ContentEncAlgo: Uint8Array
|
|
150
|
-
ContentEncKeyID: Uint8Array
|
|
151
|
-
ContentSignature: Uint8Array
|
|
152
|
-
ContentSigKeyID: Uint8Array
|
|
153
|
-
ContentSigAlgo: Uint8Array
|
|
154
|
-
ContentSigHashAlgo: Uint8Array
|
|
155
|
-
Cues: Uint8Array
|
|
156
|
-
CuePoint: Uint8Array
|
|
157
|
-
CueTime: Uint8Array
|
|
158
|
-
CueTrackPositions: Uint8Array
|
|
159
|
-
CueTrack: Uint8Array
|
|
160
|
-
CueClusterPosition: Uint8Array
|
|
161
|
-
CueRelativePosition: Uint8Array
|
|
162
|
-
CueDuration: Uint8Array
|
|
163
|
-
CueBlockNumber: Uint8Array
|
|
164
|
-
CueCodecState: Uint8Array
|
|
165
|
-
CueReference: Uint8Array
|
|
166
|
-
CueRefTime: Uint8Array
|
|
167
|
-
Attachments: Uint8Array
|
|
168
|
-
AttachedFile: Uint8Array
|
|
169
|
-
FileDescription: Uint8Array
|
|
170
|
-
FileName: Uint8Array
|
|
171
|
-
FileMimeType: Uint8Array
|
|
172
|
-
FileData: Uint8Array
|
|
173
|
-
FileUID: Uint8Array
|
|
174
|
-
Chapters: Uint8Array
|
|
175
|
-
EditionEntry: Uint8Array
|
|
176
|
-
EditionUID: Uint8Array
|
|
177
|
-
EditionFlagHidden: Uint8Array
|
|
178
|
-
EditionFlagDefault: Uint8Array
|
|
179
|
-
EditionFlagOrdered: Uint8Array
|
|
180
|
-
EncryptionAlgorithm: Uint8Array
|
|
181
|
-
EncryptionKeyID: Uint8Array
|
|
182
|
-
ContentEncAESSettings: Uint8Array
|
|
183
|
-
AESSettingsCipherMode: Uint8Array
|
|
184
|
-
ChapterAtom: Uint8Array
|
|
185
|
-
ChapterUID: Uint8Array
|
|
186
|
-
ChapterStringUID: Uint8Array
|
|
187
|
-
ChapterTimeStart: Uint8Array
|
|
188
|
-
ChapterTimeEnd: Uint8Array
|
|
189
|
-
ChapterFlagHidden: Uint8Array
|
|
190
|
-
ChapterFlagEnabled: Uint8Array
|
|
191
|
-
ChapterSegmentUID: Uint8Array
|
|
192
|
-
ChapterSegmentEditionUID: Uint8Array
|
|
193
|
-
ChapterPhysicalEquiv: Uint8Array
|
|
194
|
-
ChapterTrack: Uint8Array
|
|
195
|
-
ChapterTrackNumber: Uint8Array
|
|
196
|
-
ChapterDisplay: Uint8Array
|
|
197
|
-
ChapString: Uint8Array
|
|
198
|
-
ChapLanguage: Uint8Array
|
|
199
|
-
ChapCountry: Uint8Array
|
|
200
|
-
ChapProcess: Uint8Array
|
|
201
|
-
ChapProcessCodecID: Uint8Array
|
|
202
|
-
ChapProcessPrivate: Uint8Array
|
|
203
|
-
ChapProcessCommand: Uint8Array
|
|
204
|
-
ChapProcessTime: Uint8Array
|
|
205
|
-
ChapProcessData: Uint8Array
|
|
206
|
-
Tags: Uint8Array
|
|
207
|
-
Tag: Uint8Array
|
|
208
|
-
Targets: Uint8Array
|
|
209
|
-
TargetTypeValue: Uint8Array
|
|
210
|
-
TargetType: Uint8Array
|
|
211
|
-
TagTrackUID: Uint8Array
|
|
212
|
-
TagEditionUID: Uint8Array
|
|
213
|
-
TagChapterUID: Uint8Array
|
|
214
|
-
TagAttachmentUID: Uint8Array
|
|
215
|
-
SimpleTag: Uint8Array
|
|
216
|
-
TagName: Uint8Array
|
|
217
|
-
TagLanguage: Uint8Array
|
|
218
|
-
TagDefault: Uint8Array
|
|
219
|
-
TagString: Uint8Array
|
|
220
|
-
TagBinary: Uint8Array
|
|
221
|
-
Projection: Uint8Array
|
|
222
|
-
ProjectionType: Uint8Array
|
|
223
|
-
ProjectionPrivate: Uint8Array
|
|
224
|
-
ProjectionPoseYaw: Uint8Array
|
|
225
|
-
ProjectionPosePitch: Uint8Array
|
|
226
|
-
ProjectionPoseRoll: Uint8Array
|
|
5
|
+
EBML: Uint8Array<ArrayBuffer>;
|
|
6
|
+
EBMLVersion: Uint8Array<ArrayBuffer>;
|
|
7
|
+
EBMLReadVersion: Uint8Array<ArrayBuffer>;
|
|
8
|
+
EBMLMaxIDLength: Uint8Array<ArrayBuffer>;
|
|
9
|
+
EBMLMaxSizeLength: Uint8Array<ArrayBuffer>;
|
|
10
|
+
DocType: Uint8Array<ArrayBuffer>;
|
|
11
|
+
DocTypeVersion: Uint8Array<ArrayBuffer>;
|
|
12
|
+
DocTypeReadVersion: Uint8Array<ArrayBuffer>;
|
|
13
|
+
Void: Uint8Array<ArrayBuffer>;
|
|
14
|
+
CRC32: Uint8Array<ArrayBuffer>;
|
|
15
|
+
Segment: Uint8Array<ArrayBuffer>;
|
|
16
|
+
SeekHead: Uint8Array<ArrayBuffer>;
|
|
17
|
+
Seek: Uint8Array<ArrayBuffer>;
|
|
18
|
+
SeekID: Uint8Array<ArrayBuffer>;
|
|
19
|
+
SeekPosition: Uint8Array<ArrayBuffer>;
|
|
20
|
+
Info: Uint8Array<ArrayBuffer>;
|
|
21
|
+
SegmentUID: Uint8Array<ArrayBuffer>;
|
|
22
|
+
SegmentFilename: Uint8Array<ArrayBuffer>;
|
|
23
|
+
PrevUID: Uint8Array<ArrayBuffer>;
|
|
24
|
+
PrevFilename: Uint8Array<ArrayBuffer>;
|
|
25
|
+
NextUID: Uint8Array<ArrayBuffer>;
|
|
26
|
+
NextFilename: Uint8Array<ArrayBuffer>;
|
|
27
|
+
SegmentFamily: Uint8Array<ArrayBuffer>;
|
|
28
|
+
ChapterTranslate: Uint8Array<ArrayBuffer>;
|
|
29
|
+
ChapterTranslateEditionUID: Uint8Array<ArrayBuffer>;
|
|
30
|
+
ChapterTranslateCodec: Uint8Array<ArrayBuffer>;
|
|
31
|
+
ChapterTranslateID: Uint8Array<ArrayBuffer>;
|
|
32
|
+
TimecodeScale: Uint8Array<ArrayBuffer>;
|
|
33
|
+
Duration: Uint8Array<ArrayBuffer>;
|
|
34
|
+
DateUTC: Uint8Array<ArrayBuffer>;
|
|
35
|
+
Title: Uint8Array<ArrayBuffer>;
|
|
36
|
+
MuxingApp: Uint8Array<ArrayBuffer>;
|
|
37
|
+
WritingApp: Uint8Array<ArrayBuffer>;
|
|
38
|
+
Cluster: Uint8Array<ArrayBuffer>;
|
|
39
|
+
Timecode: Uint8Array<ArrayBuffer>;
|
|
40
|
+
SilentTracks: Uint8Array<ArrayBuffer>;
|
|
41
|
+
SilentTrackNumber: Uint8Array<ArrayBuffer>;
|
|
42
|
+
Position: Uint8Array<ArrayBuffer>;
|
|
43
|
+
PrevSize: Uint8Array<ArrayBuffer>;
|
|
44
|
+
SimpleBlock: Uint8Array<ArrayBuffer>;
|
|
45
|
+
BlockGroup: Uint8Array<ArrayBuffer>;
|
|
46
|
+
Block: Uint8Array<ArrayBuffer>;
|
|
47
|
+
BlockAdditions: Uint8Array<ArrayBuffer>;
|
|
48
|
+
BlockMore: Uint8Array<ArrayBuffer>;
|
|
49
|
+
BlockAddID: Uint8Array<ArrayBuffer>;
|
|
50
|
+
BlockAdditional: Uint8Array<ArrayBuffer>;
|
|
51
|
+
BlockDuration: Uint8Array<ArrayBuffer>;
|
|
52
|
+
ReferencePriority: Uint8Array<ArrayBuffer>;
|
|
53
|
+
ReferenceBlock: Uint8Array<ArrayBuffer>;
|
|
54
|
+
CodecState: Uint8Array<ArrayBuffer>;
|
|
55
|
+
DiscardPadding: Uint8Array<ArrayBuffer>;
|
|
56
|
+
Slices: Uint8Array<ArrayBuffer>;
|
|
57
|
+
TimeSlice: Uint8Array<ArrayBuffer>;
|
|
58
|
+
LaceNumber: Uint8Array<ArrayBuffer>;
|
|
59
|
+
Tracks: Uint8Array<ArrayBuffer>;
|
|
60
|
+
TrackEntry: Uint8Array<ArrayBuffer>;
|
|
61
|
+
TrackNumber: Uint8Array<ArrayBuffer>;
|
|
62
|
+
TrackUID: Uint8Array<ArrayBuffer>;
|
|
63
|
+
TrackType: Uint8Array<ArrayBuffer>;
|
|
64
|
+
FlagEnabled: Uint8Array<ArrayBuffer>;
|
|
65
|
+
FlagDefault: Uint8Array<ArrayBuffer>;
|
|
66
|
+
FlagForced: Uint8Array<ArrayBuffer>;
|
|
67
|
+
FlagLacing: Uint8Array<ArrayBuffer>;
|
|
68
|
+
MinCache: Uint8Array<ArrayBuffer>;
|
|
69
|
+
MaxCache: Uint8Array<ArrayBuffer>;
|
|
70
|
+
DefaultDuration: Uint8Array<ArrayBuffer>;
|
|
71
|
+
DefaultDecodedFieldDuration: Uint8Array<ArrayBuffer>;
|
|
72
|
+
MaxBlockAdditionID: Uint8Array<ArrayBuffer>;
|
|
73
|
+
Name: Uint8Array<ArrayBuffer>;
|
|
74
|
+
Language: Uint8Array<ArrayBuffer>;
|
|
75
|
+
CodecID: Uint8Array<ArrayBuffer>;
|
|
76
|
+
CodecPrivate: Uint8Array<ArrayBuffer>;
|
|
77
|
+
CodecName: Uint8Array<ArrayBuffer>;
|
|
78
|
+
AttachmentLink: Uint8Array<ArrayBuffer>;
|
|
79
|
+
CodecDecodeAll: Uint8Array<ArrayBuffer>;
|
|
80
|
+
TrackOverlay: Uint8Array<ArrayBuffer>;
|
|
81
|
+
CodecDelay: Uint8Array<ArrayBuffer>;
|
|
82
|
+
SeekPreRoll: Uint8Array<ArrayBuffer>;
|
|
83
|
+
TrackTranslate: Uint8Array<ArrayBuffer>;
|
|
84
|
+
TrackTranslateEditionUID: Uint8Array<ArrayBuffer>;
|
|
85
|
+
TrackTranslateCodec: Uint8Array<ArrayBuffer>;
|
|
86
|
+
TrackTranslateTrackID: Uint8Array<ArrayBuffer>;
|
|
87
|
+
Video: Uint8Array<ArrayBuffer>;
|
|
88
|
+
FlagInterlaced: Uint8Array<ArrayBuffer>;
|
|
89
|
+
FieldOrder: Uint8Array<ArrayBuffer>;
|
|
90
|
+
StereoMode: Uint8Array<ArrayBuffer>;
|
|
91
|
+
AlphaMode: Uint8Array<ArrayBuffer>;
|
|
92
|
+
PixelWidth: Uint8Array<ArrayBuffer>;
|
|
93
|
+
PixelHeight: Uint8Array<ArrayBuffer>;
|
|
94
|
+
PixelCropBottom: Uint8Array<ArrayBuffer>;
|
|
95
|
+
PixelCropTop: Uint8Array<ArrayBuffer>;
|
|
96
|
+
PixelCropLeft: Uint8Array<ArrayBuffer>;
|
|
97
|
+
PixelCropRight: Uint8Array<ArrayBuffer>;
|
|
98
|
+
DisplayWidth: Uint8Array<ArrayBuffer>;
|
|
99
|
+
DisplayHeight: Uint8Array<ArrayBuffer>;
|
|
100
|
+
DisplayUnit: Uint8Array<ArrayBuffer>;
|
|
101
|
+
AspectRatioType: Uint8Array<ArrayBuffer>;
|
|
102
|
+
ColourSpace: Uint8Array<ArrayBuffer>;
|
|
103
|
+
Colour: Uint8Array<ArrayBuffer>;
|
|
104
|
+
MatrixCoefficients: Uint8Array<ArrayBuffer>;
|
|
105
|
+
BitsPerChannel: Uint8Array<ArrayBuffer>;
|
|
106
|
+
ChromaSubsamplingHorz: Uint8Array<ArrayBuffer>;
|
|
107
|
+
ChromaSubsamplingVert: Uint8Array<ArrayBuffer>;
|
|
108
|
+
CbSubsamplingHorz: Uint8Array<ArrayBuffer>;
|
|
109
|
+
CbSubsamplingVert: Uint8Array<ArrayBuffer>;
|
|
110
|
+
ChromaSitingHorz: Uint8Array<ArrayBuffer>;
|
|
111
|
+
ChromaSitingVert: Uint8Array<ArrayBuffer>;
|
|
112
|
+
Range: Uint8Array<ArrayBuffer>;
|
|
113
|
+
TransferCharacteristics: Uint8Array<ArrayBuffer>;
|
|
114
|
+
Primaries: Uint8Array<ArrayBuffer>;
|
|
115
|
+
MaxCLL: Uint8Array<ArrayBuffer>;
|
|
116
|
+
MaxFALL: Uint8Array<ArrayBuffer>;
|
|
117
|
+
MasteringMetadata: Uint8Array<ArrayBuffer>;
|
|
118
|
+
PrimaryRChromaticityX: Uint8Array<ArrayBuffer>;
|
|
119
|
+
PrimaryRChromaticityY: Uint8Array<ArrayBuffer>;
|
|
120
|
+
PrimaryGChromaticityX: Uint8Array<ArrayBuffer>;
|
|
121
|
+
PrimaryGChromaticityY: Uint8Array<ArrayBuffer>;
|
|
122
|
+
PrimaryBChromaticityX: Uint8Array<ArrayBuffer>;
|
|
123
|
+
PrimaryBChromaticityY: Uint8Array<ArrayBuffer>;
|
|
124
|
+
WhitePointChromaticityX: Uint8Array<ArrayBuffer>;
|
|
125
|
+
WhitePointChromaticityY: Uint8Array<ArrayBuffer>;
|
|
126
|
+
LuminanceMax: Uint8Array<ArrayBuffer>;
|
|
127
|
+
LuminanceMin: Uint8Array<ArrayBuffer>;
|
|
128
|
+
Audio: Uint8Array<ArrayBuffer>;
|
|
129
|
+
SamplingFrequency: Uint8Array<ArrayBuffer>;
|
|
130
|
+
OutputSamplingFrequency: Uint8Array<ArrayBuffer>;
|
|
131
|
+
Channels: Uint8Array<ArrayBuffer>;
|
|
132
|
+
BitDepth: Uint8Array<ArrayBuffer>;
|
|
133
|
+
TrackOperation: Uint8Array<ArrayBuffer>;
|
|
134
|
+
TrackCombinePlanes: Uint8Array<ArrayBuffer>;
|
|
135
|
+
TrackPlane: Uint8Array<ArrayBuffer>;
|
|
136
|
+
TrackPlaneUID: Uint8Array<ArrayBuffer>;
|
|
137
|
+
TrackPlaneType: Uint8Array<ArrayBuffer>;
|
|
138
|
+
TrackJoinBlocks: Uint8Array<ArrayBuffer>;
|
|
139
|
+
TrackJoinUID: Uint8Array<ArrayBuffer>;
|
|
140
|
+
ContentEncodings: Uint8Array<ArrayBuffer>;
|
|
141
|
+
ContentEncoding: Uint8Array<ArrayBuffer>;
|
|
142
|
+
ContentEncodingOrder: Uint8Array<ArrayBuffer>;
|
|
143
|
+
ContentEncodingScope: Uint8Array<ArrayBuffer>;
|
|
144
|
+
ContentEncodingType: Uint8Array<ArrayBuffer>;
|
|
145
|
+
ContentCompression: Uint8Array<ArrayBuffer>;
|
|
146
|
+
ContentCompAlgo: Uint8Array<ArrayBuffer>;
|
|
147
|
+
ContentCompSettings: Uint8Array<ArrayBuffer>;
|
|
148
|
+
ContentEncryption: Uint8Array<ArrayBuffer>;
|
|
149
|
+
ContentEncAlgo: Uint8Array<ArrayBuffer>;
|
|
150
|
+
ContentEncKeyID: Uint8Array<ArrayBuffer>;
|
|
151
|
+
ContentSignature: Uint8Array<ArrayBuffer>;
|
|
152
|
+
ContentSigKeyID: Uint8Array<ArrayBuffer>;
|
|
153
|
+
ContentSigAlgo: Uint8Array<ArrayBuffer>;
|
|
154
|
+
ContentSigHashAlgo: Uint8Array<ArrayBuffer>;
|
|
155
|
+
Cues: Uint8Array<ArrayBuffer>;
|
|
156
|
+
CuePoint: Uint8Array<ArrayBuffer>;
|
|
157
|
+
CueTime: Uint8Array<ArrayBuffer>;
|
|
158
|
+
CueTrackPositions: Uint8Array<ArrayBuffer>;
|
|
159
|
+
CueTrack: Uint8Array<ArrayBuffer>;
|
|
160
|
+
CueClusterPosition: Uint8Array<ArrayBuffer>;
|
|
161
|
+
CueRelativePosition: Uint8Array<ArrayBuffer>;
|
|
162
|
+
CueDuration: Uint8Array<ArrayBuffer>;
|
|
163
|
+
CueBlockNumber: Uint8Array<ArrayBuffer>;
|
|
164
|
+
CueCodecState: Uint8Array<ArrayBuffer>;
|
|
165
|
+
CueReference: Uint8Array<ArrayBuffer>;
|
|
166
|
+
CueRefTime: Uint8Array<ArrayBuffer>;
|
|
167
|
+
Attachments: Uint8Array<ArrayBuffer>;
|
|
168
|
+
AttachedFile: Uint8Array<ArrayBuffer>;
|
|
169
|
+
FileDescription: Uint8Array<ArrayBuffer>;
|
|
170
|
+
FileName: Uint8Array<ArrayBuffer>;
|
|
171
|
+
FileMimeType: Uint8Array<ArrayBuffer>;
|
|
172
|
+
FileData: Uint8Array<ArrayBuffer>;
|
|
173
|
+
FileUID: Uint8Array<ArrayBuffer>;
|
|
174
|
+
Chapters: Uint8Array<ArrayBuffer>;
|
|
175
|
+
EditionEntry: Uint8Array<ArrayBuffer>;
|
|
176
|
+
EditionUID: Uint8Array<ArrayBuffer>;
|
|
177
|
+
EditionFlagHidden: Uint8Array<ArrayBuffer>;
|
|
178
|
+
EditionFlagDefault: Uint8Array<ArrayBuffer>;
|
|
179
|
+
EditionFlagOrdered: Uint8Array<ArrayBuffer>;
|
|
180
|
+
EncryptionAlgorithm: Uint8Array<ArrayBuffer>;
|
|
181
|
+
EncryptionKeyID: Uint8Array<ArrayBuffer>;
|
|
182
|
+
ContentEncAESSettings: Uint8Array<ArrayBuffer>;
|
|
183
|
+
AESSettingsCipherMode: Uint8Array<ArrayBuffer>;
|
|
184
|
+
ChapterAtom: Uint8Array<ArrayBuffer>;
|
|
185
|
+
ChapterUID: Uint8Array<ArrayBuffer>;
|
|
186
|
+
ChapterStringUID: Uint8Array<ArrayBuffer>;
|
|
187
|
+
ChapterTimeStart: Uint8Array<ArrayBuffer>;
|
|
188
|
+
ChapterTimeEnd: Uint8Array<ArrayBuffer>;
|
|
189
|
+
ChapterFlagHidden: Uint8Array<ArrayBuffer>;
|
|
190
|
+
ChapterFlagEnabled: Uint8Array<ArrayBuffer>;
|
|
191
|
+
ChapterSegmentUID: Uint8Array<ArrayBuffer>;
|
|
192
|
+
ChapterSegmentEditionUID: Uint8Array<ArrayBuffer>;
|
|
193
|
+
ChapterPhysicalEquiv: Uint8Array<ArrayBuffer>;
|
|
194
|
+
ChapterTrack: Uint8Array<ArrayBuffer>;
|
|
195
|
+
ChapterTrackNumber: Uint8Array<ArrayBuffer>;
|
|
196
|
+
ChapterDisplay: Uint8Array<ArrayBuffer>;
|
|
197
|
+
ChapString: Uint8Array<ArrayBuffer>;
|
|
198
|
+
ChapLanguage: Uint8Array<ArrayBuffer>;
|
|
199
|
+
ChapCountry: Uint8Array<ArrayBuffer>;
|
|
200
|
+
ChapProcess: Uint8Array<ArrayBuffer>;
|
|
201
|
+
ChapProcessCodecID: Uint8Array<ArrayBuffer>;
|
|
202
|
+
ChapProcessPrivate: Uint8Array<ArrayBuffer>;
|
|
203
|
+
ChapProcessCommand: Uint8Array<ArrayBuffer>;
|
|
204
|
+
ChapProcessTime: Uint8Array<ArrayBuffer>;
|
|
205
|
+
ChapProcessData: Uint8Array<ArrayBuffer>;
|
|
206
|
+
Tags: Uint8Array<ArrayBuffer>;
|
|
207
|
+
Tag: Uint8Array<ArrayBuffer>;
|
|
208
|
+
Targets: Uint8Array<ArrayBuffer>;
|
|
209
|
+
TargetTypeValue: Uint8Array<ArrayBuffer>;
|
|
210
|
+
TargetType: Uint8Array<ArrayBuffer>;
|
|
211
|
+
TagTrackUID: Uint8Array<ArrayBuffer>;
|
|
212
|
+
TagEditionUID: Uint8Array<ArrayBuffer>;
|
|
213
|
+
TagChapterUID: Uint8Array<ArrayBuffer>;
|
|
214
|
+
TagAttachmentUID: Uint8Array<ArrayBuffer>;
|
|
215
|
+
SimpleTag: Uint8Array<ArrayBuffer>;
|
|
216
|
+
TagName: Uint8Array<ArrayBuffer>;
|
|
217
|
+
TagLanguage: Uint8Array<ArrayBuffer>;
|
|
218
|
+
TagDefault: Uint8Array<ArrayBuffer>;
|
|
219
|
+
TagString: Uint8Array<ArrayBuffer>;
|
|
220
|
+
TagBinary: Uint8Array<ArrayBuffer>;
|
|
221
|
+
Projection: Uint8Array<ArrayBuffer>;
|
|
222
|
+
ProjectionType: Uint8Array<ArrayBuffer>;
|
|
223
|
+
ProjectionPrivate: Uint8Array<ArrayBuffer>;
|
|
224
|
+
ProjectionPoseYaw: Uint8Array<ArrayBuffer>;
|
|
225
|
+
ProjectionPosePitch: Uint8Array<ArrayBuffer>;
|
|
226
|
+
ProjectionPoseRoll: Uint8Array<ArrayBuffer>;
|
|
227
227
|
};
|
|
@@ -3,7 +3,7 @@ declare const DepacketizeCallback_base: {
|
|
|
3
3
|
new (...args: any[]): {
|
|
4
4
|
cb?: ((o: DepacketizerOutput) => void) | undefined;
|
|
5
5
|
destructor?: (() => void) | undefined;
|
|
6
|
-
pipe: (cb: (o: DepacketizerOutput) => void, destructor?: (() => void) | undefined) => any;
|
|
6
|
+
pipe: (cb: (o: DepacketizerOutput) => void, destructor?: (() => void) | undefined) => /*elided*/ any;
|
|
7
7
|
input: (input: DepacketizerInput) => void;
|
|
8
8
|
destroy: () => void;
|
|
9
9
|
processInput: (input: DepacketizerInput) => DepacketizerOutput[];
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { TransformStream } from "stream/web";
|
|
2
2
|
import type { DepacketizerCodec } from "../../codec";
|
|
3
|
-
import { type DepacketizerInput, type DepacketizerOptions, type DepacketizerOutput } from "./depacketizer";
|
|
3
|
+
import { DepacketizeBase, type DepacketizerInput, type DepacketizerOptions, type DepacketizerOutput } from "./depacketizer";
|
|
4
4
|
export declare const depacketizeTransformer: (codec: DepacketizerCodec, options?: DepacketizerOptions | undefined) => TransformStream<DepacketizerInput, DepacketizerOutput>;
|
|
5
|
+
declare class DepacketizeTransformer extends DepacketizeBase {
|
|
6
|
+
transform: TransformStream<DepacketizerInput, DepacketizerOutput>;
|
|
7
|
+
constructor(codec: DepacketizerCodec, options?: DepacketizerOptions);
|
|
8
|
+
}
|
|
9
|
+
export {};
|
|
@@ -3,7 +3,7 @@ declare const DtxCallback_base: {
|
|
|
3
3
|
new (...args: any[]): {
|
|
4
4
|
cb?: ((o: import("./depacketizer").DepacketizerOutput) => void) | undefined;
|
|
5
5
|
destructor?: (() => void) | undefined;
|
|
6
|
-
pipe: (cb: (o: import("./depacketizer").DepacketizerOutput) => void, destructor?: (() => void) | undefined) => any;
|
|
6
|
+
pipe: (cb: (o: import("./depacketizer").DepacketizerOutput) => void, destructor?: (() => void) | undefined) => /*elided*/ any;
|
|
7
7
|
input: (input: import("./depacketizer").DepacketizerOutput) => void;
|
|
8
8
|
destroy: () => void;
|
|
9
9
|
processInput: (input: import("./depacketizer").DepacketizerOutput) => import("./depacketizer").DepacketizerOutput[];
|
|
@@ -17,7 +17,7 @@ export declare const SimpleProcessorCallbackBase: <Input, Output, TBase extends
|
|
|
17
17
|
new (...args: any[]): {
|
|
18
18
|
cb?: (o: Output) => void;
|
|
19
19
|
destructor?: () => void;
|
|
20
|
-
pipe: (cb: (o: Output) => void, destructor?: () => void) => any;
|
|
20
|
+
pipe: (cb: (o: Output) => void, destructor?: () => void) => /*elided*/ any;
|
|
21
21
|
input: (input: Input) => void;
|
|
22
22
|
destroy: () => void;
|
|
23
23
|
processInput: (input: Input) => Output[];
|
|
@@ -3,7 +3,7 @@ declare const JitterBufferCallback_base: {
|
|
|
3
3
|
new (...args: any[]): {
|
|
4
4
|
cb?: ((o: JitterBufferOutput) => void) | undefined;
|
|
5
5
|
destructor?: (() => void) | undefined;
|
|
6
|
-
pipe: (cb: (o: JitterBufferOutput) => void, destructor?: (() => void) | undefined) => any;
|
|
6
|
+
pipe: (cb: (o: JitterBufferOutput) => void, destructor?: (() => void) | undefined) => /*elided*/ any;
|
|
7
7
|
input: (input: import("./rtpCallback").RtpOutput) => void;
|
|
8
8
|
destroy: () => void;
|
|
9
9
|
processInput: (input: import("./rtpCallback").RtpOutput) => JitterBufferOutput[];
|
|
@@ -71,6 +71,7 @@ class MP4Base {
|
|
|
71
71
|
timestamp: frame.time * 1000,
|
|
72
72
|
type: "key",
|
|
73
73
|
copyTo: (destination) => {
|
|
74
|
+
//@ts-expect-error
|
|
74
75
|
frame.data.copy(destination);
|
|
75
76
|
},
|
|
76
77
|
track: "audio",
|
|
@@ -105,6 +106,7 @@ class MP4Base {
|
|
|
105
106
|
timestamp: frame.time * 1000,
|
|
106
107
|
type: "key",
|
|
107
108
|
copyTo: (destination) => {
|
|
109
|
+
//@ts-expect-error
|
|
108
110
|
frame.data.copy(destination);
|
|
109
111
|
},
|
|
110
112
|
track: "video",
|
|
@@ -118,6 +120,7 @@ class MP4Base {
|
|
|
118
120
|
timestamp: frame.time * 1000,
|
|
119
121
|
type: frame.isKeyframe ? "key" : "delta",
|
|
120
122
|
copyTo: (destination) => {
|
|
123
|
+
//@ts-expect-error
|
|
121
124
|
frame.data.copy(destination);
|
|
122
125
|
},
|
|
123
126
|
track: "video",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mp4.js","sourceRoot":"","sources":["../../../../../../rtp/src/extra/processor/mp4.ts"],"names":[],"mappings":";;;AAAA,iDAA6C;AAE7C,6BAA2D;AAC3D,0CAK0B;AA6B1B,MAAa,OAAO;IAMlB,YACS,MAAe,EACd,MAAmC,EACnC,UAAqB,EAAE;QAF/B;;;;mBAAO,MAAM;WAAS;QACtB;;;;mBAAQ,MAAM;WAA6B;QAC3C;;;;mBAAQ,OAAO;WAAgB;QARzB;;;;mBAAgB,EAAE;WAAC;QACnB;;;;;WAAwB;QAChC;;;;mBAAU,KA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CAAC,IAAI,KAAK,OAAO,CAAC;gBACpD,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,OAAO,CAAC;aACrD;SACF,CAAC,CAAC;QACH,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE,EAAE;YACvC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACpB,CAAC,CAAC,CAAC;IACL,CAAC;IAED,MAAM;QACJ,OAAO;YACL,GAAG,IAAI,CAAC,aAAa;SACtB,CAAC;IACJ,CAAC;IAkFS,KAAK,KAAI,CAAC;IAEpB,IAAI,KAAI,CAAC;CACV;AA/GD,0BA+GC;AAED,SAAS,YAAY,CAAC,CAAS,EAAE,CAAS;IACxC,SAAS,GAAG,CAAC,CAAS,EAAE,CAAS;QAC/B,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;YACf,MAAM,IAAI,GAAG,CAAC,CAAC;YACf,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YACV,CAAC,GAAG,IAAI,CAAC;QACX,CAAC;QACD,OAAO,CAAC,CAAC;IACX,CAAC;IAED,MAAM,OAAO,GAAG,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC1B,OAAO,CAAC,CAAC,GAAG,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC,CAAC;AACpC,CAAC","sourcesContent":["import { Event } from \"../../imports/common\";\n\nimport { OpusRtpPayload, buffer2ArrayBuffer } from \"../..\";\nimport {\n type DataType,\n Mp4Container,\n type Mp4SupportedCodec,\n annexb2avcc,\n} from \"../container/mp4\";\nimport type { AVProcessor } from \"./interface\";\n\nexport type Mp4Input = {\n frame?: {\n data: Buffer;\n isKeyframe: boolean;\n /**ms */\n time: number;\n };\n eol?: boolean;\n};\n\nexport interface Mp4Output {\n type: DataType;\n timestamp: number;\n duration: number;\n data: Uint8Array;\n eol?: boolean;\n kind: \"audio\" | \"video\";\n}\n\nexport interface MP4Option {\n /**ms */\n duration?: number;\n encryptionKey?: Buffer;\n strictTimestamp?: boolean;\n}\n\nexport class MP4Base implements AVProcessor<Mp4Input> {\n private internalStats = {};\n private container: Mp4Container;\n stopped = false;\n onStopped = new Event();\n\n constructor(\n public tracks: Track[],\n private output: (output: Mp4Output) => void,\n private options: MP4Option = {},\n ) {\n this.container = new Mp4Container({\n track: {\n audio: !!this.tracks.find((t) => t.kind === \"audio\"),\n video: !!this.tracks.find((t) => t.kind === \"video\"),\n },\n });\n this.container.onData.subscribe((data) => {\n this.output(data);\n });\n }\n\n toJSON(): Record<string, any> {\n return {\n ...this.internalStats,\n };\n }\n\n processAudioInput = ({ frame }: Mp4Input) => {\n const track = this.tracks.find((t) => t.kind === \"audio\")!;\n\n if (frame) {\n if (!this.container.audioTrack) {\n this.container.write({\n codec: track.codec,\n description: buffer2ArrayBuffer(\n OpusRtpPayload.createCodecPrivate(),\n ) as ArrayBuffer,\n numberOfChannels: 2,\n sampleRate: track.clockRate,\n track: \"audio\",\n });\n } else {\n this.container.write({\n byteLength: frame.data.length,\n duration: null,\n timestamp: frame.time * 1000,\n type: \"key\",\n copyTo: (destination) => {\n //@ts-expect-error\n frame.data.copy(destination);\n },\n track: \"audio\",\n });\n }\n }\n };\n\n processVideoInput = ({ frame }: Mp4Input) => {\n const track = this.tracks.find((t) => t.kind === \"video\")!;\n\n if (frame) {\n if (!this.container.videoTrack) {\n if (frame.isKeyframe) {\n const avcc = annexb2avcc(frame.data);\n\n const [displayAspectWidth, displayAspectHeight] = computeRatio(\n track.width!,\n track.height!,\n );\n\n this.container.write({\n codec: track.codec,\n codedWidth: track.width,\n codedHeight: track.height,\n description: avcc.buffer as ArrayBuffer,\n displayAspectWidth,\n displayAspectHeight,\n track: \"video\",\n });\n this.container.write({\n byteLength: frame.data.length,\n duration: null,\n timestamp: frame.time * 1000,\n type: \"key\",\n copyTo: (destination) => {\n //@ts-expect-error\n frame.data.copy(destination);\n },\n track: \"video\",\n });\n }\n } else {\n this.container.write({\n byteLength: frame.data.length,\n duration: null,\n timestamp: frame.time * 1000,\n type: frame.isKeyframe ? \"key\" : \"delta\",\n copyTo: (destination) => {\n //@ts-expect-error\n frame.data.copy(destination);\n },\n track: \"video\",\n });\n }\n }\n };\n\n protected start() {}\n\n stop() {}\n}\n\nfunction computeRatio(a: number, b: number) {\n function gcd(x: number, y: number) {\n while (y !== 0) {\n const temp = y;\n y = x % y;\n x = temp;\n }\n return x;\n }\n\n const divisor = gcd(a, b);\n return [a / divisor, b / divisor];\n}\n\nexport interface Track {\n width?: number;\n height?: number;\n kind: \"audio\" | \"video\";\n codec: Mp4SupportedCodec;\n clockRate: number;\n trackNumber: number;\n}\n"]}
|
|
@@ -3,7 +3,7 @@ declare const NackHandlerCallback_base: {
|
|
|
3
3
|
new (...args: any[]): {
|
|
4
4
|
cb?: ((o: import("./rtpCallback").RtpOutput) => void) | undefined;
|
|
5
5
|
destructor?: (() => void) | undefined;
|
|
6
|
-
pipe: (cb: (o: import("./rtpCallback").RtpOutput) => void, destructor?: (() => void) | undefined) => any;
|
|
6
|
+
pipe: (cb: (o: import("./rtpCallback").RtpOutput) => void, destructor?: (() => void) | undefined) => /*elided*/ any;
|
|
7
7
|
input: (input: import("./rtpCallback").RtpOutput) => void;
|
|
8
8
|
destroy: () => void;
|
|
9
9
|
processInput: (input: import("./rtpCallback").RtpOutput) => import("./rtpCallback").RtpOutput[];
|
|
@@ -3,7 +3,7 @@ declare const NtpTimeCallback_base: {
|
|
|
3
3
|
new (...args: any[]): {
|
|
4
4
|
cb?: ((o: NtpTimeOutput) => void) | undefined;
|
|
5
5
|
destructor?: (() => void) | undefined;
|
|
6
|
-
pipe: (cb: (o: NtpTimeOutput) => void, destructor?: (() => void) | undefined) => any;
|
|
6
|
+
pipe: (cb: (o: NtpTimeOutput) => void, destructor?: (() => void) | undefined) => /*elided*/ any;
|
|
7
7
|
input: (input: NtpTimeInput) => void;
|
|
8
8
|
destroy: () => void;
|
|
9
9
|
processInput: (input: NtpTimeInput) => NtpTimeOutput[];
|
|
@@ -3,7 +3,7 @@ declare const RtpTimeCallback_base: {
|
|
|
3
3
|
new (...args: any[]): {
|
|
4
4
|
cb?: ((o: RtpTimeOutput) => void) | undefined;
|
|
5
5
|
destructor?: (() => void) | undefined;
|
|
6
|
-
pipe: (cb: (o: RtpTimeOutput) => void, destructor?: (() => void) | undefined) => any;
|
|
6
|
+
pipe: (cb: (o: RtpTimeOutput) => void, destructor?: (() => void) | undefined) => /*elided*/ any;
|
|
7
7
|
input: (input: RtpTimeInput) => void;
|
|
8
8
|
destroy: () => void;
|
|
9
9
|
processInput: (input: RtpTimeInput) => RtpTimeOutput[];
|
|
@@ -72,5 +72,5 @@ export declare const Max32Uint: number;
|
|
|
72
72
|
export declare const MaxSinged16Int: number;
|
|
73
73
|
export declare const DurationPosition = 83;
|
|
74
74
|
export declare const SegmentSizePosition = 40;
|
|
75
|
-
export declare function replaceSegmentSize(totalFileSize: number): Buffer
|
|
75
|
+
export declare function replaceSegmentSize(totalFileSize: number): Buffer<ArrayBuffer>;
|
|
76
76
|
export type MediaKind = "video" | "audio";
|
|
@@ -13,4 +13,4 @@ export declare class WebmCallback extends WebmBase {
|
|
|
13
13
|
* @param path
|
|
14
14
|
* @returns eol
|
|
15
15
|
*/
|
|
16
|
-
export declare const saveToFileSystem: (path: string) => (value: WebmOutput) => Promise<boolean
|
|
16
|
+
export declare const saveToFileSystem: (path: string) => (value: WebmOutput) => Promise<boolean>;
|