Where should I add "app.js" for pixel streaming

Hello,

I have set up a pixel streaming, I have a FPS system, where users can select objects in level using line trace and change its material using widget buttons.

I have to set “ControlScheme” for the page so that the can click buttons. After going through the documentation, I see that it says to add the below code in app.js file locating in signallingserver folder.

<script>
inputOptions.controlScheme = ControlSchemeType.HoveringMouse;
inputOptions.fakeMouseWithTouches = true; 
</script>

Can anyone please guide me on where should I place the app.js folder and if the above code can be the only contents of the JS file. Also, I don’t want to add custom HTML/CSS?JS file and wanna have the default pixel streaming setup.

Hi there!

If you’re looking to specify ControlScheme for your Pixel Streaming Infrastructure, you can do so via Config.ts, as found here.

We provide a little bit of information regarding customizing the player input here: