Skip to content

Commit

Permalink
Fix issue 893: broken livekit-client in Angular
Browse files Browse the repository at this point in the history
  • Loading branch information
pabloFuente committed Oct 25, 2023
1 parent 24b6dcc commit 8f665bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/room/track/LocalAudioTrack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export default class LocalAudioTrack extends LocalTrack {
this.prevStats = stats;
};

async setProcessor(processor: TrackProcessor<typeof this.kind>) {
async setProcessor(processor: TrackProcessor<this['kind']>) {
const unlock = await this.processorLock.lock();
try {
if (!this.audioContext) {
Expand Down
4 changes: 2 additions & 2 deletions src/room/track/LocalTrack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default abstract class LocalTrack extends Track {

protected processorElement?: HTMLMediaElement;

protected processor?: TrackProcessor<typeof this.kind>;
protected processor?: TrackProcessor<this['kind']>;

protected processorLock: Mutex;

Expand Down Expand Up @@ -403,7 +403,7 @@ export default abstract class LocalTrack extends Track {
* @returns
*/
async setProcessor(
processor: TrackProcessor<typeof this.kind>,
processor: TrackProcessor<this['kind']>,
showProcessedStreamLocally = true,
) {
const unlock = await this.processorLock.lock();
Expand Down

0 comments on commit 8f665bc

Please sign in to comment.