Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emit TimesyncUpdates for local tracks #1191

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

lukasIO
Copy link
Contributor

@lukasIO lukasIO commented Jul 15, 2024

Manually computing these for local tracks makes it easier to compute activeTranscriptions with the same API that we use for remote tracks.
Downside is that we register this for every local track independently, but probably not a major concern.

Copy link

changeset-bot bot commented Jul 15, 2024

⚠️ No Changeset found

Latest commit: 6d5dd3b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@lukasIO lukasIO requested a review from davidzhao July 15, 2024 10:10
Copy link
Contributor

github-actions bot commented Jul 15, 2024

size-limit report 📦

Path Size
dist/livekit-client.esm.mjs 80.93 KB (+0.15% 🔺)
dist/livekit-client.umd.js 86.82 KB (+0.11% 🔺)

@@ -541,5 +543,23 @@ export default abstract class LocalTrack<
this.emit(TrackEvent.TrackProcessorUpdate);
}

protected registerTimeSyncUpdate() {
Copy link
Member

Choose a reason for hiding this comment

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

does this work for RN?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the browser APIs requestAnimationFrame, and performance.x should be available in RN. Haven't done any tests yet to confirm though.
@davidliu had some concerns whether the contributing sources used for remote tracks would work in RN out of the box though

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.

2 participants