Skip to content

Commit

Permalink
おそらく重くて駄目な気がする
Browse files Browse the repository at this point in the history
  • Loading branch information
voluntas committed Feb 22, 2024
1 parent 94ffa73 commit 30021a4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/simulcast/main.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down
3 changes: 3 additions & 0 deletions tests/simulcast.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`)
Expand Down

0 comments on commit 30021a4

Please sign in to comment.