Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release minor versions of data, sctp and dtls crates #346

Merged
merged 6 commits into from
Nov 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion data/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@

## Unreleased

## v0.5.1

* Increased minimum support rust version to `1.60.0`.
* Do not loose data in `PollDataChannel::poll_write` [#341](https://github.com/webrtc-rs/webrtc/pull/341).
* `PollDataChannel::poll_shutdown`: make sure to flush any writes before shutting down [#340](https://github.com/webrtc-rs/webrtc/pull/340)

## 0.5.0
## v0.5.0

* [#16 [PollDataChannel] reset shutdown_fut future after done](https://github.com/webrtc-rs/data/pull/16) by [@melekes](https://github.com/melekes).
* Increase min verison of `log` dependency to `0.4.16`. [#250 Fix log at ^0.4.16 to make tests compile](https://github.com/webrtc-rs/webrtc/pull/250) by [@k0nserv](https://github.com/k0nserv).
Expand Down
4 changes: 2 additions & 2 deletions data/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "webrtc-data"
version = "0.5.0"
version = "0.5.1"
authors = ["Rain Liu <yliu@webrtc.rs>"]
edition = "2018"
description = "A pure Rust implementation of WebRTC DataChannel API"
Expand All @@ -14,7 +14,7 @@ rust-version = "1.60.0"

[dependencies]
util = { version = "0.6.0", path = "../util", package = "webrtc-util", default-features = false, features = ["conn", "marshal"] }
sctp = { version = "0.6.1", path = "../sctp", package = "webrtc-sctp" }
sctp = { version = "0.6.2", path = "../sctp", package = "webrtc-sctp" }

tokio = { version = "1.19", features = ["full"] }
bytes = "1"
Expand Down
6 changes: 3 additions & 3 deletions dtls/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

## Unreleased

* Increased minimum support rust version to `1.60.0`.
* Add `RTCCertificate::from_pem` and `RTCCertificate::serialize_pem` (only work with `pem` feature enabled) [#333]
## v0.6.1

[#333]: https://github.com/webrtc-rs/webrtc/pull/333
* Increased minimum support rust version to `1.60.0`.
* Add `RTCCertificate::from_pem` and `RTCCertificate::serialize_pem` (only work with `pem` feature enabled) [#333](https://github.com/webrtc-rs/webrtc/pull/333)

## v0.6.0

Expand Down
2 changes: 1 addition & 1 deletion dtls/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "webrtc-dtls"
version = "0.6.0"
version = "0.6.1"
authors = ["Rain Liu <yuliu@webrtc.rs>"]
edition = "2018"
description = "A pure Rust implementation of DTLS"
Expand Down
2 changes: 2 additions & 0 deletions sctp/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Unreleased

## v0.6.2

* Increased minimum support rust version to `1.60.0`.
* Do not loose data in `PollStream::poll_write` [#341](https://github.com/webrtc-rs/webrtc/pull/341).
* `PollStream::poll_shutdown`: make sure to flush any writes before shutting down [#340](https://github.com/webrtc-rs/webrtc/pull/340)
Expand Down
2 changes: 1 addition & 1 deletion sctp/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "webrtc-sctp"
version = "0.6.1"
version = "0.6.2"
authors = ["Rain Liu <yliu@webrtc.rs>"]
edition = "2018"
description = "A pure Rust implementation of SCTP"
Expand Down
19 changes: 8 additions & 11 deletions webrtc/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,21 @@ directions that should not send. [#316](https://github.com/webrtc-rs/webrtc/pull

#### Breaking changes

* Allow one single direction for extmap matching. [#321](https://github.com/webrtc-rs/webrtc/pull/321). API
change for MediaEngine::register_header_extension
* Removes support for Plan-B. All major implementations of WebRTC now support unified and continuing support for plan-b is an undue maintenance burden when unified can be used. See [“Unified Plan” Transition Guide (JavaScript)](https://docs.google.com/document/d/1-ZfikoUtoJa9k-GZG1daN0BU3IjIanQ_JSscHxQesvU/) for an overview of the changes required to migrate. [#320](https://github.com/webrtc-rs/webrtc/pull/320) by [@algesten](https://github.com/algesten).

#### Breaking changes

* Remove 2nd argument from `RTCCertificate::from_pem` and guard it with `pem` feature [#333]
* Rename `RTCCertificate::pem` to `serialize_pem` and guard it with `pem` feature [#333]
* Remove `RTCCertificate::expires` [#333]
* Allowed one single direction for extmap matching. [#321](https://github.com/webrtc-rs/webrtc/pull/321).
API change for `MediaEngine::register_header_extension`.
* Removed support for Plan-B. All major implementations of WebRTC now support unified and continuing support for plan-b is an undue maintenance burden when unified can be used. See [“Unified Plan” Transition Guide (JavaScript)](https://docs.google.com/document/d/1-ZfikoUtoJa9k-GZG1daN0BU3IjIanQ_JSscHxQesvU/) for an overview of the changes required to migrate. [#320](https://github.com/webrtc-rs/webrtc/pull/320) by [@algesten](https://github.com/algesten).
* Removed 2nd argument from `RTCCertificate::from_pem` and guard it with `pem` feature [#333]
* Renamed `RTCCertificate::pem` to `serialize_pem` and guard it with `pem` feature [#333]
* Removed `RTCCertificate::expires` [#333]
* `RTCCertificate::get_fingerprints` no longer returns `Result` [#333]

[#333]: https://github.com/webrtc-rs/webrtc/pull/333

## 0.5.1
## v0.5.1

* Promote agent lock in ice_gather.rs create_agent() to top level of the function to avoid a race condition. [#290 Promote create_agent lock to top of function, to avoid race condition](https://github.com/webrtc-rs/webrtc/pull/290) contributed by [efer-ms](https://github.com/efer-ms)

## 0.5.0
## v0.5.0

### Changes

Expand Down
6 changes: 3 additions & 3 deletions webrtc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ rust-version = "1.60.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
data = { version = "0.5.0", path = "../data", package = "webrtc-data" }
dtls = { version = "0.6.0", path = "../dtls", package = "webrtc-dtls" }
data = { version = "0.5.1", path = "../data", package = "webrtc-data" }
dtls = { version = "0.6.1", path = "../dtls", package = "webrtc-dtls" }
ice = { version = "0.8.0", path = "../ice", package = "webrtc-ice" }
interceptor = { version = "0.8.0", path = "../interceptor" }
mdns = { version = "0.5.0", path = "../mdns", package = "webrtc-mdns" }
media = { version = "0.4.7", path = "../media", package = "webrtc-media" }
rtcp = { version = "0.7.0", path = "../rtcp" }
rtp = { version = "0.6.7", path = "../rtp" }
sctp = { version = "0.6.1", path = "../sctp", package = "webrtc-sctp" }
sctp = { version = "0.6.2", path = "../sctp", package = "webrtc-sctp" }
sdp = { version = "0.5.2", path = "../sdp" }
srtp = { version = "0.9.0", path = "../srtp", package = "webrtc-srtp" }
stun = { version = "0.4.3", path = "../stun" }
Expand Down
40 changes: 29 additions & 11 deletions webrtc/src/track/track_local/track_local_static_sample.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,18 +140,36 @@ impl TrackLocalStaticSample {
/// Create a builder for writing samples with additional data.
///
/// # Example
/// ```no-run
/// # use crate::track_local::track_local_static_sample::TrackLocalStaticSample;
/// # let track: TrackLocalStaticSample = todo!();
/// ```no_run
/// use rtp::extension::audio_level_extension::AudioLevelExtension;
/// let result = track
/// .sample_writer()
/// .with_audio_level(AudioLevelExtension {
/// level: 10,
/// voice: true,
/// })
/// .write_sample()
/// .await;
/// use std::time::Duration;
/// use webrtc::api::media_engine::MIME_TYPE_VP8;
/// use webrtc::rtp_transceiver::rtp_codec::RTCRtpCodecCapability;
/// use webrtc::track::track_local::track_local_static_sample::TrackLocalStaticSample;
///
/// #[tokio::main]
/// async fn main() {
/// let track = TrackLocalStaticSample::new(
/// RTCRtpCodecCapability {
/// mime_type: MIME_TYPE_VP8.to_owned(),
/// ..Default::default()
/// },
/// "video".to_owned(),
/// "webrtc-rs".to_owned(),
/// );
/// let result = track
/// .sample_writer()
/// .with_audio_level(AudioLevelExtension {
/// level: 10,
/// voice: true,
/// })
/// .write_sample(&media::Sample{
/// data: bytes::Bytes::new(),
/// duration: Duration::from_secs(1),
/// ..Default::default()
/// })
/// .await;
/// }
/// ```
pub fn sample_writer(&self) -> SampleWriter<'_> {
SampleWriter::new(self)
Expand Down