Repository navigation
feat(stream): stream tokens, error reasons, labels and mic/camera - #8
Merged
Merged
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
sleynsol
approved these changes
Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
DeviceStreamnow connects with short-lived, single-use stream tokens that your backend mints with@mobilerun/sdk6.3.0, reports why a connection failed, lets you replace every visible string and theme it without global CSS, and can send the user's microphone and camera to the device.Changes
tokenProvider: called on every connect for a fresh token; your backend mints it withclient.streamTokens.create({ deviceId, ttlSeconds, allowedOrigins }). The staticstreamTokenprop keeps working for existing integrations and is deprecated.onError({ reason, message, attempt, final })with reasonscredentials_unavailable,connection_refused,disconnected,unknown; messages are fixed SDK text.labelsfor every visible string;--mr-*CSS variables scoped to the component, nothing on:root.startPublish({ audio, video? }),stopPublish(),onPublishStateChange. Capture starts only after the device accepts; reasonspublish_not_allowed,publish_unsupported,permission_denied,publish_busy,publish_failed,publish_timeout,publish_cancelled,disconnected. A built-in control at the bottom of the stream appears whenpublishCapabilitiessays the device supports it; hide it withhidePublishControls.skills/mobilerun-device-stream/SKILL.md: an agent skill for integrating the component; README and guides updated.Testing
bun run typecheck,bun test,bun run buildand the example build pass.Runtime
Verified against a live device: stream with single-use tokens, reconnect with a fresh token, origin binding, microphone and camera publish (accepted → active, outbound audio and video), stop and remount cleanup.
Rollout
Release as the next minor version after merge.