показывать себя в превью
All checks were successful
Deploy / publish-web (push) Successful in 42s

This commit is contained in:
2026-02-03 16:47:33 +06:00
parent 269b19a5be
commit 1354ca3f7e
7 changed files with 95 additions and 36 deletions

View File

@@ -384,6 +384,9 @@ export const useMediasoup = createSharedComposable(() => {
const stream = await navigator.mediaDevices.getUserMedia({
video: {
deviceId: { exact: preferences.videoDeviceId.value },
width: { ideal: 1920 },
height: { ideal: 1080 },
frameRate: { ideal: 60 },
},
})
@@ -395,9 +398,9 @@ export const useMediasoup = createSharedComposable(() => {
await createProducer({
track,
streamId: 'mic-video',
codec: device.value.rtpCapabilities.codecs?.find(
c => c.mimeType.toLowerCase() === 'video/AV1',
),
// codec: device.value.rtpCapabilities.codecs?.find(
// c => c.mimeType.toLowerCase() === 'video/AV1',
// ),
// codecOptions: {
// videoGoogleStartBitrate: 1000,
// },