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}`)