|
@@ -401,7 +401,7 @@ export const getTrack = async (trackType: TrackType): Promise<RTC.RCLocalTrack>
|
|
|
if (trackType === 'microphone') {
|
|
|
res = await runtime.rtcClient?.createMicrophoneAudioTrack('RongCloudRTC', {
|
|
|
micphoneId: runtime.selectedMicrophone?.deviceId,
|
|
|
- sampleRate: 44100,
|
|
|
+ sampleRate: Number(localStorage.getItem('sampleRate') || '44100') || 44100,
|
|
|
}) as TrackResult
|
|
|
} else if (trackType === 'microphone2') {
|
|
|
res = await runtime.rtcClient?.createMicrophoneAudioTrack('RongCloudRTC', {
|