mirror of
https://github.com/vector-im/element-call.git
synced 2026-07-15 18:49:21 +00:00
Setup test for music
This commit is contained in:
@@ -83,7 +83,11 @@ async function doConnect(
|
|||||||
let preCreatedAudioTrack: LocalTrack | undefined;
|
let preCreatedAudioTrack: LocalTrack | undefined;
|
||||||
try {
|
try {
|
||||||
const audioTracks = await livekitRoom!.localParticipant.createTracks({
|
const audioTracks = await livekitRoom!.localParticipant.createTracks({
|
||||||
audio: { deviceId: initialDeviceId },
|
audio: {
|
||||||
|
deviceId: initialDeviceId,
|
||||||
|
autoGainControl: false,
|
||||||
|
noiseSuppression: false,
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
if (audioTracks.length < 1) {
|
if (audioTracks.length < 1) {
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ Please see LICENSE in the repository root for full details.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
AudioPresets,
|
||||||
ConnectionState,
|
ConnectionState,
|
||||||
type E2EEManagerOptions,
|
type E2EEManagerOptions,
|
||||||
ExternalE2EEKeyProvider,
|
ExternalE2EEKeyProvider,
|
||||||
@@ -107,6 +108,10 @@ export function useLivekit(
|
|||||||
deviceId: getValue(devices.videoInput.selected$)?.id,
|
deviceId: getValue(devices.videoInput.selected$)?.id,
|
||||||
processor,
|
processor,
|
||||||
},
|
},
|
||||||
|
publishDefaults: {
|
||||||
|
...defaultLiveKitOptions.publishDefaults,
|
||||||
|
audioPreset: AudioPresets.musicHighQuality,
|
||||||
|
},
|
||||||
audioCaptureDefaults: {
|
audioCaptureDefaults: {
|
||||||
...defaultLiveKitOptions.audioCaptureDefaults,
|
...defaultLiveKitOptions.audioCaptureDefaults,
|
||||||
deviceId: initialAudioInputId,
|
deviceId: initialAudioInputId,
|
||||||
|
|||||||
Reference in New Issue
Block a user