This repository was archived by the owner on Mar 1, 2024. It is now read-only.
[BUG] - streamerIDOption.selected returns an array. Not a string #489
Labels
bug
Something isn't working
UE Version:
UE 5.4
Frontend Version:
UE5.4-0.0.3
Problem component
Frontend
Description

I want to continue the topic raised here
Tested the ability to connect several streamers to one signal server, without using a matchmaker. An array of available streamers comes to the client via a web socket, and everything is cool here.
The problem appears when selecting a streamer during initial setup.
The StreamerId parameter is not accepted in the PixelStreaming class and no connection to the streamer occurs.

This only works if you specify the /?StreamerId=DefaultStreamer1 parameter via the URL

Updating In SettingOption.ts in the constructor
to
fixed this issue (Thanks @mcottontensor)
Steps to Reproduce:
As mentioned in SettingsOption.ts selected() getter must return a string. But here it is an array of strings. Typescript won't tell you the error, you have to check the console. Because of this, the condition does not work correctly and the wanted streamer is not assigned to a variable
Here is a piece of code from WebRtcPlayerController.handleStreamerListMessage()
This also doesn't work correctly if there is only one streamer but with a specified StreamerId on the client.
Expected behavior
Platform (please complete the following information):
P.S. Many thanks for your hard work. You've created a really great library.
The text was updated successfully, but these errors were encountered: