Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
140 changes: 69 additions & 71 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 31 additions & 7 deletions tests/src/transports/moq.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,31 @@ vi.mock("@moq/publish", () => {
.catch(() => {});
},
};
source = {
peek: () =>
this._track ? { track: this._track } : undefined,
// 0.4 moved component outputs under `out`.
out = {
source: {
peek: () => (this._track ? { track: this._track } : undefined),
},
};
constructor(_opts: unknown) {}
}
return {
Broadcast: class {
// The network broadcast, re-created per connection. Undefined here
// since these tests never connect.
net = { peek: () => undefined };
close() {}
},
Audio: { StreamTrack: class {} },
Audio: {
StreamTrack: class {},
// 0.4 registers the audio rendition through an encoder rather than
// an inline `audio` prop on the broadcast.
Encoder: class {
sampleRate: unknown;
constructor(_name: string, _opts: unknown) {}
close() {}
},
},
Source: { Microphone },
};
});
Expand All @@ -65,9 +79,19 @@ vi.mock("@moq/watch", () => ({
},
Sync: class {},
Audio: {
Source: class {},
Decoder: class {},
Emitter: class {},
Source: class {
out = { jitter: undefined, config: { peek: () => undefined } };
close() {}
},
Decoder: class {
// Read by the transport to tell the source which codecs it can play.
static supported = undefined;
out = { context: undefined, root: undefined };
close() {}
},
Emitter: class {
close() {}
},
},
}));
vi.mock("@moq/net", () => ({
Expand Down
12 changes: 6 additions & 6 deletions transports/moq-transport/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@
"@pipecat-ai/client-js": "~1.13.0"
},
"dependencies": {
"@moq/hang": "^0.2.12",
"@moq/json": "^0.1.2",
"@moq/net": "^0.1.6",
"@moq/publish": "^0.2.16",
"@moq/signals": "^0.1.10",
"@moq/watch": "^0.2.18"
"@moq/hang": "^0.3.4",
"@moq/json": "^0.3.1",
"@moq/net": "^0.2.3",
"@moq/publish": "^0.4.3",
"@moq/signals": "^0.2.1",
"@moq/watch": "^0.4.4"
},
"description": "Pipecat Media-over-QUIC (MoQ) Transport Package",
"author": "Daily.co",
Expand Down
Loading
Loading