Working DataChannel

This commit is contained in:
Théo Monnom
2022-09-20 14:37:47 +02:00
parent 8380ffadef
commit 8111b97782
9 changed files with 245 additions and 68 deletions
@@ -20,6 +20,8 @@ namespace livekit {
void register_observer(NativeDataChannelObserver &observer);
void unregister_observer();
bool send(const DataBuffer& buffer);
rust::String label() const;
void close();
private:
rtc::scoped_refptr<webrtc::DataChannelInterface> data_channel_;
@@ -21,6 +21,7 @@ namespace livekit {
struct RTCOfferAnswerOptions;
struct RTCError;
struct DataChannelInit;
struct DataBuffer;
}
#endif //RUST_TYPES_H