Open xhs opened 9 years ago
You can see how it is done at janus https://github.com/meetecho/janus-gateway
FYI: Janus is GPL licensed.
I did not mean dumb code copying - just check how the channel is closed using appropriate SCTP message. BTW next serious problem after rtdc_close() is keepalive for candidate/datachannel.
Ugly hack is to use keepalive "lost" event as rtdc_close() trigger
How to close a data channel?