@livekit/rtc-node 0.13.13 → 0.13.16
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/README.md +3 -0
- package/dist/audio_stream.cjs +3 -2
- package/dist/audio_stream.cjs.map +1 -1
- package/dist/audio_stream.d.cts +10 -2
- package/dist/audio_stream.d.ts +10 -2
- package/dist/audio_stream.d.ts.map +1 -1
- package/dist/audio_stream.js +2 -1
- package/dist/audio_stream.js.map +1 -1
- package/dist/data_streams/index.d.cts +2 -2
- package/dist/data_streams/index.d.ts +2 -2
- package/dist/data_streams/stream_reader.cjs.map +1 -1
- package/dist/data_streams/stream_reader.d.cts +2 -2
- package/dist/data_streams/stream_reader.d.ts +2 -2
- package/dist/data_streams/stream_reader.d.ts.map +1 -1
- package/dist/data_streams/stream_reader.js.map +1 -1
- package/dist/data_streams/stream_writer.cjs.map +1 -1
- package/dist/data_streams/stream_writer.d.cts +2 -2
- package/dist/data_streams/stream_writer.d.ts +2 -2
- package/dist/data_streams/stream_writer.d.ts.map +1 -1
- package/dist/data_streams/stream_writer.js.map +1 -1
- package/dist/data_streams/types.d.cts +2 -2
- package/dist/data_streams/types.d.ts +2 -2
- package/dist/ffi_client.cjs +4 -2
- package/dist/ffi_client.cjs.map +1 -1
- package/dist/ffi_client.d.cts +4 -1
- package/dist/ffi_client.d.ts +4 -1
- package/dist/ffi_client.d.ts.map +1 -1
- package/dist/ffi_client.js +4 -2
- package/dist/ffi_client.js.map +1 -1
- package/dist/index.d.cts +11 -8
- package/dist/index.d.ts +11 -8
- package/dist/participant.cjs +13 -15
- package/dist/participant.cjs.map +1 -1
- package/dist/participant.d.cts +8 -4
- package/dist/participant.d.ts +8 -4
- package/dist/participant.d.ts.map +1 -1
- package/dist/participant.js +5 -7
- package/dist/participant.js.map +1 -1
- package/dist/proto/audio_frame_pb.cjs +4 -2
- package/dist/proto/audio_frame_pb.cjs.map +1 -1
- package/dist/proto/audio_frame_pb.d.cts +8 -0
- package/dist/proto/audio_frame_pb.d.ts +8 -0
- package/dist/proto/audio_frame_pb.d.ts.map +1 -1
- package/dist/proto/audio_frame_pb.js +4 -2
- package/dist/proto/audio_frame_pb.js.map +1 -1
- package/dist/proto/data_stream_pb.cjs +1549 -0
- package/dist/proto/data_stream_pb.cjs.map +1 -0
- package/dist/proto/data_stream_pb.d.cts +1358 -0
- package/dist/proto/data_stream_pb.d.ts +1358 -0
- package/dist/proto/data_stream_pb.d.ts.map +1 -0
- package/dist/proto/data_stream_pb.js +1473 -0
- package/dist/proto/data_stream_pb.js.map +1 -0
- package/dist/proto/ffi_pb.cjs +43 -3
- package/dist/proto/ffi_pb.cjs.map +1 -1
- package/dist/proto/ffi_pb.d.cts +251 -8
- package/dist/proto/ffi_pb.d.ts +251 -8
- package/dist/proto/ffi_pb.d.ts.map +1 -1
- package/dist/proto/ffi_pb.js +43 -3
- package/dist/proto/ffi_pb.js.map +1 -1
- package/dist/proto/participant_pb.cjs +5 -1
- package/dist/proto/participant_pb.cjs.map +1 -1
- package/dist/proto/participant_pb.d.cts +9 -1
- package/dist/proto/participant_pb.d.ts +9 -1
- package/dist/proto/participant_pb.d.ts.map +1 -1
- package/dist/proto/participant_pb.js +5 -1
- package/dist/proto/participant_pb.js.map +1 -1
- package/dist/proto/room_pb.cjs +99 -2
- package/dist/proto/room_pb.cjs.map +1 -1
- package/dist/proto/room_pb.d.cts +130 -2
- package/dist/proto/room_pb.d.ts +130 -2
- package/dist/proto/room_pb.d.ts.map +1 -1
- package/dist/proto/room_pb.js +97 -3
- package/dist/proto/room_pb.js.map +1 -1
- package/dist/proto/track_pb.cjs +27 -1
- package/dist/proto/track_pb.cjs.map +1 -1
- package/dist/proto/track_pb.d.cts +40 -1
- package/dist/proto/track_pb.d.ts +40 -1
- package/dist/proto/track_pb.d.ts.map +1 -1
- package/dist/proto/track_pb.js +26 -1
- package/dist/proto/track_pb.js.map +1 -1
- package/dist/room.cjs +79 -3
- package/dist/room.cjs.map +1 -1
- package/dist/room.d.cts +59 -8
- package/dist/room.d.ts +59 -8
- package/dist/room.d.ts.map +1 -1
- package/dist/room.js +77 -1
- package/dist/room.js.map +1 -1
- package/dist/{stream_reader-a8_oiaOi.d.cts → stream_reader-Ch2zvjU3.d.cts} +0 -1
- package/dist/{stream_reader-DWUV4eJB.d.ts → stream_reader-DRyR29vo.d.ts} +0 -1
- package/dist/track.cjs +23 -4
- package/dist/track.cjs.map +1 -1
- package/dist/track.d.cts +17 -4
- package/dist/track.d.ts +17 -4
- package/dist/track.d.ts.map +1 -1
- package/dist/track.js +23 -4
- package/dist/track.js.map +1 -1
- package/dist/track_publication.d.cts +9 -1
- package/dist/track_publication.d.ts +9 -1
- package/dist/version.cjs +1 -1
- package/dist/version.cjs.map +1 -1
- package/dist/version.d.cts +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/dist/video_source.d.cts +11 -2
- package/dist/video_source.d.ts +11 -2
- package/dist/video_stream.cjs +1 -2
- package/dist/video_stream.cjs.map +1 -1
- package/dist/video_stream.d.cts +8 -1
- package/dist/video_stream.d.ts +8 -1
- package/dist/video_stream.d.ts.map +1 -1
- package/dist/video_stream.js +0 -1
- package/dist/video_stream.js.map +1 -1
- package/package.json +7 -7
- package/src/audio_stream.ts +5 -1
- package/src/data_streams/stream_reader.ts +0 -1
- package/src/data_streams/stream_writer.ts +0 -1
- package/src/ffi_client.ts +9 -5
- package/src/participant.ts +13 -15
- package/src/proto/audio_frame_pb.ts +12 -0
- package/src/proto/data_stream_pb.ts +2515 -0
- package/src/proto/ffi_pb.ts +283 -1
- package/src/proto/participant_pb.ts +12 -0
- package/src/proto/room_pb.ts +212 -1
- package/src/proto/track_pb.ts +58 -0
- package/src/room.ts +79 -1
- package/src/track.ts +28 -4
- package/src/version.ts +1 -1
- package/src/video_stream.ts +1 -1
package/src/participant.ts
CHANGED
|
@@ -20,21 +20,29 @@ import {
|
|
|
20
20
|
ParticipantKind,
|
|
21
21
|
} from './proto/participant_pb.js';
|
|
22
22
|
import {
|
|
23
|
+
ChatMessage as ChatMessageModel,
|
|
23
24
|
DataStream_ByteHeader,
|
|
24
25
|
DataStream_Chunk,
|
|
25
26
|
DataStream_Header,
|
|
26
27
|
DataStream_OperationType,
|
|
27
28
|
DataStream_TextHeader,
|
|
28
29
|
DataStream_Trailer,
|
|
30
|
+
EditChatMessageRequest,
|
|
31
|
+
TranscriptionSegment as ProtoTranscriptionSegment,
|
|
29
32
|
type PublishDataCallback,
|
|
33
|
+
PublishDataRequest,
|
|
30
34
|
type PublishDataResponse,
|
|
31
35
|
type PublishSipDtmfCallback,
|
|
36
|
+
PublishSipDtmfRequest,
|
|
32
37
|
type PublishSipDtmfResponse,
|
|
33
38
|
type PublishTrackCallback,
|
|
39
|
+
PublishTrackRequest,
|
|
34
40
|
type PublishTrackResponse,
|
|
35
41
|
type PublishTranscriptionCallback,
|
|
42
|
+
PublishTranscriptionRequest,
|
|
36
43
|
type PublishTranscriptionResponse,
|
|
37
44
|
type SendChatMessageCallback,
|
|
45
|
+
SendChatMessageRequest,
|
|
38
46
|
type SendChatMessageResponse,
|
|
39
47
|
type SendStreamChunkCallback,
|
|
40
48
|
SendStreamChunkRequest,
|
|
@@ -46,28 +54,18 @@ import {
|
|
|
46
54
|
SendStreamTrailerRequest,
|
|
47
55
|
type SendStreamTrailerResponse,
|
|
48
56
|
type SetLocalAttributesCallback,
|
|
57
|
+
SetLocalAttributesRequest,
|
|
49
58
|
type SetLocalAttributesResponse,
|
|
50
59
|
type SetLocalMetadataCallback,
|
|
60
|
+
SetLocalMetadataRequest,
|
|
51
61
|
type SetLocalMetadataResponse,
|
|
52
62
|
type SetLocalNameCallback,
|
|
63
|
+
SetLocalNameRequest,
|
|
53
64
|
type SetLocalNameResponse,
|
|
54
65
|
type TrackPublishOptions,
|
|
55
66
|
type UnpublishTrackCallback,
|
|
56
|
-
type UnpublishTrackResponse,
|
|
57
|
-
} from './proto/room_pb.js';
|
|
58
|
-
import { ChatMessage as ChatMessageModel } from './proto/room_pb.js';
|
|
59
|
-
import {
|
|
60
|
-
EditChatMessageRequest,
|
|
61
|
-
TranscriptionSegment as ProtoTranscriptionSegment,
|
|
62
|
-
PublishDataRequest,
|
|
63
|
-
PublishSipDtmfRequest,
|
|
64
|
-
PublishTrackRequest,
|
|
65
|
-
PublishTranscriptionRequest,
|
|
66
|
-
SendChatMessageRequest,
|
|
67
|
-
SetLocalAttributesRequest,
|
|
68
|
-
SetLocalMetadataRequest,
|
|
69
|
-
SetLocalNameRequest,
|
|
70
67
|
UnpublishTrackRequest,
|
|
68
|
+
type UnpublishTrackResponse,
|
|
71
69
|
} from './proto/room_pb.js';
|
|
72
70
|
import type {
|
|
73
71
|
PerformRpcCallback,
|
|
@@ -460,7 +458,7 @@ export class LocalParticipant extends Participant {
|
|
|
460
458
|
const fileStats = await stat(path);
|
|
461
459
|
const file = await open(path);
|
|
462
460
|
try {
|
|
463
|
-
const stream: ReadableStream<Uint8Array> = file.readableWebStream(
|
|
461
|
+
const stream: ReadableStream<Uint8Array> = file.readableWebStream();
|
|
464
462
|
const streamId = crypto.randomUUID();
|
|
465
463
|
const destinationIdentities = options?.destinationIdentities;
|
|
466
464
|
|
|
@@ -211,6 +211,11 @@ export class NewAudioStreamRequest extends Message<NewAudioStreamRequest> {
|
|
|
211
211
|
*/
|
|
212
212
|
audioFilterOptions?: string;
|
|
213
213
|
|
|
214
|
+
/**
|
|
215
|
+
* @generated from field: optional uint32 frame_size_ms = 7;
|
|
216
|
+
*/
|
|
217
|
+
frameSizeMs?: number;
|
|
218
|
+
|
|
214
219
|
constructor(data?: PartialMessage<NewAudioStreamRequest>) {
|
|
215
220
|
super();
|
|
216
221
|
proto2.util.initPartial(data, this);
|
|
@@ -225,6 +230,7 @@ export class NewAudioStreamRequest extends Message<NewAudioStreamRequest> {
|
|
|
225
230
|
{ no: 4, name: "num_channels", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
226
231
|
{ no: 5, name: "audio_filter_module_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
227
232
|
{ no: 6, name: "audio_filter_options", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
233
|
+
{ no: 7, name: "frame_size_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
228
234
|
]);
|
|
229
235
|
|
|
230
236
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): NewAudioStreamRequest {
|
|
@@ -320,6 +326,11 @@ export class AudioStreamFromParticipantRequest extends Message<AudioStreamFromPa
|
|
|
320
326
|
*/
|
|
321
327
|
audioFilterOptions?: string;
|
|
322
328
|
|
|
329
|
+
/**
|
|
330
|
+
* @generated from field: optional uint32 frame_size_ms = 9;
|
|
331
|
+
*/
|
|
332
|
+
frameSizeMs?: number;
|
|
333
|
+
|
|
323
334
|
constructor(data?: PartialMessage<AudioStreamFromParticipantRequest>) {
|
|
324
335
|
super();
|
|
325
336
|
proto2.util.initPartial(data, this);
|
|
@@ -335,6 +346,7 @@ export class AudioStreamFromParticipantRequest extends Message<AudioStreamFromPa
|
|
|
335
346
|
{ no: 6, name: "num_channels", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
336
347
|
{ no: 7, name: "audio_filter_module_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
337
348
|
{ no: 8, name: "audio_filter_options", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
349
|
+
{ no: 9, name: "frame_size_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
338
350
|
]);
|
|
339
351
|
|
|
340
352
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AudioStreamFromParticipantRequest {
|