-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Hugo Arregui
committed
Dec 28, 2023
1 parent
ecec335
commit b493392
Showing
15 changed files
with
54 additions
and
529 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 5 additions & 4 deletions
9
browser-interface/packages/shared/comms/adapters/OfflineAdapter.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
import mitt from 'mitt' | ||
import { VoiceHandler } from 'shared/voiceChat/VoiceHandler' | ||
import { CommsAdapterEvents, MinimumCommunicationsAdapter, SendHints } from './types' | ||
import { createOpusVoiceHandler } from './voice/opusVoiceHandler' | ||
|
||
export class OfflineAdapter implements MinimumCommunicationsAdapter { | ||
events = mitt<CommsAdapterEvents>() | ||
|
||
constructor() {} | ||
async createVoiceHandler(): Promise<VoiceHandler> { | ||
return createOpusVoiceHandler() | ||
async getVoiceHandler(): Promise<VoiceHandler | undefined> { | ||
return undefined | ||
} | ||
async disconnect(_error?: Error | undefined): Promise<void> {} | ||
send(_data: Uint8Array, _hints: SendHints): void {} | ||
async connect(): Promise<void> {} | ||
async getParticipants() { return [] } | ||
async getParticipants() { | ||
return [] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 0 additions & 12 deletions
12
browser-interface/packages/shared/comms/adapters/voice/Html.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.