Skip to content

Latest commit

 

History

History
56 lines (31 loc) · 1.66 KB

RenderStreaming.md

File metadata and controls

56 lines (31 loc) · 1.66 KB

Render Streaming

This project tests Unity Render Streaming.

Code

Requirements:

=> code

HTML5 dump

Two video elements are in the HTML5 code:

Settings on RenderStreaming

Since my PC is not equipped with NVIDIA GPU, I have uncheked "Hardware Encode Support" in the cyan frame.

Button events from the browser can be distributed to my custom functions by modifying the settings in the yellow frame.

Code reading

JavaScript part of

https://github.com/Unity-Technologies/UnityRenderStreaming/blob/release/2.2.2/WebApp/public/scripts/app.js

Video player

https://github.com/Unity-Technologies/UnityRenderStreaming/blob/release/2.2.2/WebApp/public/scripts/video-player.js

Handling input events

https://github.com/Unity-Technologies/UnityRenderStreaming/blob/release/2.2.2/WebApp/public/scripts/register-events.js

Handling gamepad events

I have confirmed this code works with my Logicool F310

https://github.com/Unity-Technologies/UnityRenderStreaming/blob/release/2.2.2/WebApp/public/scripts/gamepadEvents.js

Security vulnerabilities alert from GitHub

WebApp (copied from https://github.com/Unity-Technologies/UnityRenderStreaming/tree/release/2.2.2/WebApp) seems to have security vulnerabilities:

node-notifier  moderate severity
minimist low severity