LS3solutions / LS3solutions/openstream-server

Open-Stream tvOS handshake error -4

Open
#18 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
205
Forks
24
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked moonlight-common-c RtspConnection.c section at lines 584-607, then trace the corresponding RTSP audio negotiation in OpenStream. Reproduce the Apple TV connection with 7.1 surround sound enabled and verify that the handshake succeeds without error -4.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
audio-video-rtc
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.