-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make
publish_data
wait until the DataChannel's bufferedAmount becom…
…es low. (#545) * expose buffered_amount method to Rust * test to implement wait_for_dc_buffer_low * remove wait_for_low function, add functionality to wait it in publish_data * test FFI implementation * add callback * revert unused changes * not necessary to make this async * update lock * add nanpa changeset * create dc_task for more reliable data publishing * change get/set dc buffered_amount_low_threshold FFI functions to support Lossy kind as well * fmt * add logs if buffer amount become unexpected value * set default threshold to 2MB * fmt * ignore error here * add buffered_amount_low_threshold in RoomInfo * remove Get ffi function for dc buffered_low_threshold, instead, add it to RoomInfo * update changeset * flatten DataChannelOptions in protobuf * fmt
- Loading branch information
Showing
17 changed files
with
411 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
patch type="added" package="libwebrtc" "Expose DataChannel.bufferedAmount property" | ||
patch type="fixed" package="livekit" "Wait for the buffered amount to become low before sending data during publish_data for Reliable Data Channel" | ||
patch type="added" package="livekit" "Add an API to set buffer_amount_low_threshold for DataChannel" | ||
patch type="added" package="livekit" "Update RoomInfo to contain buffer_amount_low_threshold for DataChannel" | ||
patch type="added" package="livekit-ffi" "Add an API to set buffer_amount_low_threshold for DataChannel" | ||
patch type="added" package="livekit-ffi" "Update RoomInfo to contain buffer_amount_low_threshold for DataChannel" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.