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

Take soft ownership for video with bitecs #5969

Merged
merged 1 commit into from
Mar 14, 2023
Merged

Take soft ownership for video with bitecs #5969

merged 1 commit into from
Mar 14, 2023

Conversation

takahirox
Copy link
Contributor

Currently Hubs Client doesn't try to take soft ownwership for videos with bitecs so even if you upload a video you don't take ownership and the video doesn't play correctly.

With this commit the client tries to take soft ownership and the problem will be resolved.

@@ -100,7 +101,8 @@ function audioEmitterSystem(world: HubsWorld, audioSystem: AudioSystem) {
}

const OUT_OF_SYNC_SEC = 5;
const networkedVideoQuery = defineQuery([NetworkedVideo]);
const networkedVideoQuery = defineQuery([Networked, NetworkedVideo]);
const networkedVideoEntryQuery = enterQuery(networkedVideoQuery);
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggestion: Rename ...EntryQuery -> ...EnterQuery

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK, updated

Copy link
Contributor

@netpro2k netpro2k left a comment

Choose a reason for hiding this comment

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

I still have a slight feeling that we are missing something but if actually became this simple thats great, since this was one of the more complex and error prone things in the old networking system.

Currently Hubs Client doesn't try to take soft ownwership for
videos with bitecs so even if you upload a video you don't
take ownership and the video doesn't play correctly.

With this commit the client tries to take soft ownership and
the problem will be resolved.
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.

None yet

3 participants