zllovesuki/go-wish

Subscribe to mediamtx WebRTC stream

benbullnz opened this issue · 1 comments

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

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!