Replaced the logic to send the offer from the frontend depending on what is sent from the signalling server #34
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.
Relevant components:
Problem statement:
Currently there is logic to handle sending the webRTC offer based on the engine version. A new property has been introduced to remove this logic.
Solution
The logic to determine if the frontend sends the webRTC offer is replaced with the
frontendToSendOfferproperty as from the config message that is sent from the signalling server.Test Plan and Compatibility
Prerequisites
cd examples/typescript npm run serve-devfrontendToSendOfferset totrueofferapplication with thefrontendToSendOfferset totrueusing the following JSON data and command.offer-v1.json
{ "name": "v1", "buildOptions": { "input": { "containerTag": "tensorworks/ue:5.0-linux" } }, "runtimeOptions": { "pixelStreaming": { "webRTC": { "frontendToSendOffer": true } } } }activeVersionof applicationoffertov1.Clicked to start the instance
Wait for the instance to start
Click the Gear in the top left corner
The value of the
Browser send offeroptions will beonfrontendToSendOfferset tofalseno-offerapplication with thefrontendToSendOfferset tofalseusing the following JSON data and command.no-offer-v1.json
{ "name": "v1", "buildOptions": { "input": { "containerTag": "tensorworks/ue:5.0-linux" } }, "runtimeOptions": { "pixelStreaming": { "webRTC": { "frontendToSendOffer": false } } } }activeVersionof applicationno-offertov1.Clicked to start the instance
Wait for the instance to start
Click the Gear in the top left corner
The value of the
Browser send offeroptions will beoff