mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 21:45:31 +09:00
feat(voice): request web share audio via the browser picker (#2384)
This commit is contained in:
1 parent
475f5a7dae
commit
62577b25bb
3 files changed
+33
-2
No files matched your search
@@ -156,6 +156,32 @@ describe('buildScreenShareOptions', () => {
|
||||
frameRate: 30,
|
||||
});
|
||||
});
|
||||
it('offers the browser picker system audio for every surface when audio is requested', () => {
|
||||
const {captureOptions} = buildScreenShareOptions({
|
||||
resolution: 'medium',
|
||||
frameRate: 30,
|
||||
includeAudio: true,
|
||||
useBrowserAudioPicker: true,
|
||||
});
|
||||
expect(captureOptions).toMatchObject({
|
||||
audio: true,
|
||||
systemAudio: 'include',
|
||||
windowAudio: 'system',
|
||||
});
|
||||
});
|
||||
it('keeps the browser picker audio hints excluded when audio is not requested', () => {
|
||||
const {captureOptions} = buildScreenShareOptions({
|
||||
resolution: 'medium',
|
||||
frameRate: 30,
|
||||
includeAudio: false,
|
||||
useBrowserAudioPicker: true,
|
||||
});
|
||||
expect(captureOptions).toMatchObject({
|
||||
audio: false,
|
||||
systemAudio: 'exclude',
|
||||
windowAudio: 'exclude',
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe('forced screen share bitrate', () => {
|
||||
|
||||
Reference in new issue
Block a user