Converting RTPPacket to streams #948
Unanswered
nicolastmaia
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi guys!
I'm implementing a Webrtc SFU server using sipsorcery, mobile peers are using react-native.
I'm already able to make two mobile peers communicate with audio flowing through the server, and for that I'm using OnRtpPacketReceived on the server side like below. The server receives the rtp packets and resends them to another peer.
Is there any way to convert this RTPPacket to a stream and send the stream? I already have another application using sipsorcery that sends streams, but it gets the audio from a file locally to the server machine so it never has to deal with RTPPackets.
I tried getting the rtpPkt.Payload, encapsulating it into a MemoryStream and sending it via audioSource.SendAudioFromStream (that's how I do it on the other app I mentioned), but had no success.
Can anybody help me please?
Beta Was this translation helpful? Give feedback.
All reactions