Commit Graph

13 Commits

Author SHA1 Message Date
Sean DuBois
0c8abd0bc3 Improve STUN/DTLS/SRTP demux, use example from RFC 2018-07-21 12:27:38 -07:00
Sean DuBois
51e669e1d8 Improve error handling and enums in SCTP
* Make sure errors in SCTP make it all the way back
* Move structs into files with proper names in SCTP
* Add String() for AssociationState enum
* Add callbacks to Association to that we can handle
  DATA in the DataChannel package and send outbound SCTP
2018-07-21 12:27:38 -07:00
John R. Bradley
93fa676740 Add more association logic, RFC stuff 2018-07-21 12:27:38 -07:00
Sean DuBois
bfe324e8c0 Fix go lint warnings 2018-06-30 03:05:58 -07:00
Sean DuBois
5bf9d5af34 Add ICE connection state change notification and timeouts 2018-06-30 02:57:47 -07:00
Sean DuBois
6cd9d069c1 Clean up network.Port
* Split send/recv across two files
* Simplify DTLS handling, makes code cleaner
2018-06-29 01:18:18 -07:00
Sean DuBois
a623369bca Fix lint errors 2018-06-24 23:11:14 -07:00
Sean DuBois
5235a4f78c Prepare for send-peer
Only thing left is creating the RTP packets, using packets directly
works
2018-06-24 19:48:45 -07:00
Sean DuBois
d3fb3960b3 It works!
Sending video now works, encryption only works with libsrtp till
packetization lands
2018-06-24 18:38:55 -07:00
Sean DuBois
e74b0d63a5 Add outbound context handling 2018-06-23 01:30:44 -07:00
Sean DuBois
51136804ac Significant send progress
* GStreamer sends RTP packets to Go
* pion-WebRTC generates proper SDP, and has certificate ready
* Just need to implement SRTP functionality and rough MVP should be done
2018-06-22 01:04:07 -07:00
Sean DuBois
52702bd6b5 Finish refactor needed to start sending packets
* srtpContext is properly keyed by IP:PORT:SSRC
* Put state in Port struct, so we can cleanup OpenSSL
* Discard RTCP packets with TODO message
2018-06-21 01:40:00 -07:00
Sean DuBois
85a637dd9b Create new type 'Port' which maintains the state of a UDP listener 2018-06-20 01:06:36 -07:00