-
Notifications
You must be signed in to change notification settings - Fork 104
Add frame processor support for audio streams (node version) #583
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 12 commits
cd4f084
3d83af4
d97a68e
9dc08be
470bead
1d57a9f
3a90b34
9619009
646d63e
851e904
f95c332
ac4ef77
39492c9
5f113f9
793ae90
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| '@livekit/rtc-node': patch | ||
| --- | ||
|
|
||
| Add frame processor support for audio streams |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| // SPDX-FileCopyrightText: 2025 LiveKit, Inc. | ||
| // | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
| import { AudioFrame } from './audio_frame.js'; | ||
| import { VideoFrame } from './video_frame.js'; | ||
|
|
||
| export type FrameProcessorStreamInfo = { | ||
| roomName: string; | ||
| participantIdentity: string; | ||
| publicationSid: string; | ||
| }; | ||
|
|
||
| export type FrameProcessorCredentials = { | ||
| token: string; | ||
| url: string; | ||
| }; | ||
|
|
||
| export abstract class FrameProcessor<Frame extends VideoFrame | AudioFrame> { | ||
| abstract isEnabled(): boolean; | ||
| abstract setEnabled(enabled: boolean): void; | ||
|
|
||
| abstract onStreamInfoUpdated(info: FrameProcessorStreamInfo): void; | ||
| abstract onCredentialsUpdated(credentials: FrameProcessorCredentials): void; | ||
|
||
|
|
||
| abstract process(frame: Frame): Frame; | ||
lukasIO marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| abstract close(): void; | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.