LS3solutions / openstream-server

GNU General Public License v3.0
201 stars 26 forks source link

Open-Stream tvOS handshake error -4 #18

Open ScarAce1989 opened 3 years ago

ScarAce1989 commented 3 years ago

I use Open-Stream to use Moonlight with my AMD GPU. I can connect with my iPhones and MacBook Pro, but I get an error trying to connect to my Apple TV. I tried it over LAN and WiFi, no luck.

Open-Stream > Moonlight Apple TV - handshake failed -4

Open stream: info: CLIENT CONNECTED TO RTSP info: CLIENT DISCONNECTED FROM RTSP

Apple TV: Connection failed RTSP handshake failed with error -4 Check your firewall and port forwarding rules for port(s): TCP 48010 UDP 48000 UDP 48010

Answer I got from Moonlight github:

I suspect the reason is that Moonlight is requesting 7.1 surround sound and OpenStream doesn't send the opus mappings for it. The relevant code in moonlight-common-c is here: https://github.com/moonlight-stream/moonlight-common-c/blob/65047ac0e21450aa2064eee74b1a0f509cc189ad/src/RtspConnection.c#L584-L607

The bug is in OpenStream here, not Moonlight. I recommend filing an issue there: https://github.com/LS3solutions/openstream-server

https://github.com/moonlight-stream/moonlight-ios/issues/458

GNUDimarik commented 3 years ago

Thanks for making issue! First of all you should refer to code from my fork. There is latest version which I working on at the moment. Next you need to make sure you use the latest moonlight. There is some fixes related with AMD chipsets. Do you use openstream which you build by your self?

ScarAce1989 commented 3 years ago

I use the latest Moonlight on my Apple TV. I did not build Open-Stream by myself, I use openstream_alpha_2312.1

I'm not a coder, but if you want me to test something, let me know. I also reported this at Discord.