Skip to content

FCE-3775 Let useSandbox choose the video codec - #615

Merged
Gawor270 merged 4 commits into
mainfrom
fce-3775-sandbox-video-codec
Sep 25, 2026
Merged

Gawor270 merged 4 commits into
mainfrom
fce-3775-sandbox-video-codec

Conversation

@Gawor270

@Gawor270 Gawor270 commented Sep 23, 2026 •

Copy link
Copy Markdown
Member

Description

  • Add an optional options argument ({ videoCodec }) to getSandboxPeerToken and getSandboxLivestream, after the existing roomType / isPublic arguments
  • Send videoCodec (vp8 | h264) with both requests
  • Show a clear error when the room already exists with a different room type or video codec (409)
  • Export VideoCodec and SandboxOptions from react-client and mobile-client

Motivation and Context

The Sandbox API now accepts a videoCodec query parameter; compositions need H.264 rooms.

Documentation impact

  • Documentation update required
  • Documentation updated in another PR
  • No documentation update required

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to
    not work as expected)

@linear

linear Bot commented Sep 23, 2026

Copy link
Copy Markdown

FCE-3775

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

No unresolved blocking issues were identified.

Review effort: Lite
Findings: None

What changed in this PR

Adds optional vp8/h264 video codec selection to Sandbox requests, clearer 409 conflict errors, and public type exports.

Changes:

  • Adds codec query parameters to peer-token and livestream helpers.
  • Handles room configuration conflicts with clear errors.
  • Exports SandboxVideoCodec and adds tests.
File Summary
packages/​react-client/​src/​tests/​sandbox.spec.ts Tests codec parameters and 409 errors
packages/​react-client/​src/​index.ts Exports SandboxVideoCodec
packages/​react-client/​src/​hooks/​useSandbox.ts Adds codec support and conflict handling
packages/​mobile-client/​src/​index.ts Re-exports the codec type

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@Gawor270
Gawor270 marked this pull request as ready for review September 23, 2026 11:42
Comment thread packages/react-client/src/hooks/useSandbox.ts Outdated
Comment thread packages/react-client/src/hooks/useSandbox.ts Outdated
@Gawor270
Gawor270 requested a review from czerwiukk September 25, 2026 09:55
@Gawor270
Gawor270 merged commit 39d5776 into main Sep 25, 2026
2 checks passed
@Gawor270
Gawor270 deleted the fce-3775-sandbox-video-codec branch September 25, 2026 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants