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

Using in collaboration with FMETP_STREAM 3.0 #509

Open
1 of 2 tasks
dylan-infinitus opened this issue May 22, 2023 · 1 comment
Open
1 of 2 tasks

Using in collaboration with FMETP_STREAM 3.0 #509

dylan-infinitus opened this issue May 22, 2023 · 1 comment
Assignees
Labels

Comments

@dylan-infinitus
Copy link

dylan-infinitus commented May 22, 2023

Please avoid duplicates

Language and Compiler

Vanilla JavaScript

What environment are you using?

Local Development Server

When does your problem occur?

When the Unity App is running

What does your problem relate to?

The problem seems Browser related

React-Unity-WebGL Version

9.4.0

React Version

18.2.0

Unity Version

2022.1.19f1

What happened?

I am using react-unity-webgl in collaboration with another asset for streaming data: FMETP_STREAM 3.0.

Link to FMETP_STREAM 3.0 asset: https://assetstore.unity.com/packages/tools/video/fmetp-stream-3-0-221362

I have an existing Node.js server running on AWS which should relay messages between my clients. I have two versions: a mobile app built with Unity and a Unity WebGL version hosted within a React app.

When I run the build output of the Unity WebGL within the Unity generated local server, everything works as expected. Although, when I embed the Unity app within a React app using react-unity-webgl my WebGL app doesn't decode the byte data being relayed back from the Node.js server (sent from the mobile app).

Is this an issue with how react-unity-webgl handles the WebGL embedding within my React app?

I have noticed that building via the Unity "Build and Run" method while using the Minimal template does not work either. Only the Default or PWA templates work correctly.

Reproducible test case

  1. Download FMETP_STREAM 3.0 asset and follow the simple instructions to create a test scene
  2. Run the local Node.js server provided with the asset
  3. Build one version of your scene to embed within a React app
  4. Run the second version within Editor or a mobile device (doesn't matter which you choose)
  5. View the logs in the browser as it shows data being retrieved but not decoded by the app

Would you be interested in contributing a fix?

  • yes, I would like to contribute a fix
@thedrhax14
Copy link

It is maybe related to additional files that must be included in the header of the html file. It may worth to check if the asset comes with extra js files that should be included. We had a similar issue with AVPro to support live streams, so, we had to include an external js module for hls in the header of index.html so that live streaming videos work. Maybe it is the same for FMETP but different js module

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants