naver / prism-live-studio

GNU General Public License v2.0
61 stars 24 forks source link

Invalid RTMP `connect` message when streaming to two custom RTMP channels #73

Open balins opened 12 months ago

balins commented 12 months ago

Hi, I encountered a weird bug – when streaming to two custom-added RTMP channels/destinations (one on my home network and one remote), the tcUrl in connect RTMP message was invalid: rtmp://[address]:1935//[stream key] (notice missing app between //). Also, flashVer field was missing from this message. This makes the whole message non-compliant with the RTMP spec, so the server rejects the connection. Interestingly, this problem does not occur when streaming to a single destination (disabling either of them). I'll be happy to help with investigating the issue further and hopefully getting it fixed.

Edit: I've tried to append /app to server address manually when configuring the channel, but this in turn results in PRISM not appending the stream key to tcUrl 👀