This repository has been archived by the owner on Mar 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 261
Api support for UE communication #132
Merged
lukehb
merged 10 commits into
EpicGames:master
from
hmuurine:api-support-for-ue-communication
Mar 6, 2023
Merged
Api support for UE communication #132
lukehb
merged 10 commits into
EpicGames:master
from
hmuurine:api-support-for-ue-communication
Mar 6, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hmuurine
commented
Mar 1, 2023
lukehb
suggested changes
Mar 2, 2023
…to match other API functions
1e99767
to
70c14a5
Compare
lukehb
approved these changes
Mar 2, 2023
lukehb
suggested changes
Mar 2, 2023
lukehb
approved these changes
Mar 6, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Adds support for browser <-> UE communication through the API:
emitUIInteraction(data: object | string)
:UIInteraction
messageemitCommand(descriptor: object)
:ConsoleCommand
, it is permitted only if the UE app has been started with-AllowPixelStreamingCommands
command line argumentemitConsoleCommand(command: string)
:-AllowPixelStreamingCommands
command line argumentaddResponseEventListener(name, funct)
/removeResponseEventListener(name)
:Test plan
Browser <-> UE
EchoBack
EchoResponse: $originalMessage
uiless.ts
to do the following:UIInteraction
message starting withEchoBack
10 seconds after page has been openedCustom commands
-AllowPixelStreamingCommands
uiless.ts
to toggle FPS counter and degrade video quality 10 seconds after initialization:Opened


uiless.html
, waited for 10 seconds, and verified that FPS counter was enabled and video quality was degradedRepeated the test with
-AllowPixelStreamingCommands
command line arg disabledVerified that FPS counter was not enabled after 10 seconds, since the console command was rejected. Video was still degraded as expected