zllovesuki / go-wish

simple WHIP/WHEP to publish from RTP or play to RTP
MIT License
4 stars 0 forks source link

Subscribe to mediamtx WebRTC stream #1

Closed benbullnz closed 11 months ago

benbullnz commented 11 months ago

Hi,

Thanks for making your project availabe. It has helped me quite a lot. I'm trying to build a WHEP subscriber which will subscribe to a opus encoded audio only stream from a mediamtx server. Once subscribed, I will ultimately pass the track to a SFU, but for the purposes of this post the RTP traffic can effectively route to /dev/null.

I'm having some trouble keeping the PC open with mediamtx. It appears if the various exchanging is completing fine and the PC is established, but then go-wish immediately fails and panics. It appears if mediamtx closes the connection first.

I wondered if you would be kind enough to take a look and see if there is anything obvious I am missing. attached is a mediamtx.yml config file which points to a working test stream.

The following command gets me to the point of the panic. ./go-wish -endpoint http://127.0.0.1:8889/test/whep -mode player -trickle false

mediamtx.zip

Any help or insights would be greatlty appreciated. Thanks BB

benbullnz commented 11 months ago

Update: Discovered the issue is relaed to this line in go-wish:

//s.SetSRTPProtectionProfiles(extension.SRTP_AEAD_AES_128_GCM, extension.SRTP_AEAD_AES_256_GCM)

Comment out and all works as expected, although obviously less secured.

Thanks anyway!