From 30021a4309d24c8b9ff86c487fb9d036e35ee706 Mon Sep 17 00:00:00 2001 From: voluntas Date: Thu, 22 Feb 2024 10:57:58 +0900 Subject: [PATCH] =?UTF-8?q?=E3=81=8A=E3=81=9D=E3=82=89=E3=81=8F=E9=87=8D?= =?UTF-8?q?=E3=81=8F=E3=81=A6=E9=A7=84=E7=9B=AE=E3=81=AA=E6=B0=97=E3=81=8C?= =?UTF-8?q?=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/simulcast/main.mjs | 4 ++-- tests/simulcast.spec.ts | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/examples/simulcast/main.mjs b/examples/simulcast/main.mjs index ba80b9e5..1ca688ea 100644 --- a/examples/simulcast/main.mjs +++ b/examples/simulcast/main.mjs @@ -13,8 +13,8 @@ const metadata = { access_token: ACCESS_TOKEN } const sendonly = sora.sendonly(channelId, metadata, { audio: false, - videoCodecType: 'AV1', - videoBitRate: 3000, + videoCodecType: 'VP8', + videoBitRate: 2500, simulcast: true, }) sendonly.on('notify', (event) => { diff --git a/tests/simulcast.spec.ts b/tests/simulcast.spec.ts index 592465cb..67215da5 100644 --- a/tests/simulcast.spec.ts +++ b/tests/simulcast.spec.ts @@ -5,6 +5,9 @@ test('simulcast sendonly/recvonly pages', async ({ page }) => { await page.click('#start') + // 安全によせて 5 秒待つ + await page.waitForTimeout(5000) + await page.waitForSelector('#local-video-connection-id:not(:empty)') const localConnectionId = await page.$eval('#local-video-connection-id', (el) => el.textContent) console.log(`local connectionId=${localConnectionId}`)