diff --git a/data/CHANGELOG.md b/data/CHANGELOG.md index a901d2ae5..e647cc64a 100644 --- a/data/CHANGELOG.md +++ b/data/CHANGELOG.md @@ -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). diff --git a/data/Cargo.toml b/data/Cargo.toml index bc4ff9eb3..ff0460648 100644 --- a/data/Cargo.toml +++ b/data/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "webrtc-data" -version = "0.5.0" +version = "0.5.1" authors = ["Rain Liu "] edition = "2018" description = "A pure Rust implementation of WebRTC DataChannel API" @@ -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" diff --git a/dtls/CHANGELOG.md b/dtls/CHANGELOG.md index 61d289c69..120e08ce0 100644 --- a/dtls/CHANGELOG.md +++ b/dtls/CHANGELOG.md @@ -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 diff --git a/dtls/Cargo.toml b/dtls/Cargo.toml index 2b629cee8..50b14db0e 100644 --- a/dtls/Cargo.toml +++ b/dtls/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "webrtc-dtls" -version = "0.6.0" +version = "0.6.1" authors = ["Rain Liu "] edition = "2018" description = "A pure Rust implementation of DTLS" diff --git a/sctp/CHANGELOG.md b/sctp/CHANGELOG.md index f3f60a98e..8b1441049 100644 --- a/sctp/CHANGELOG.md +++ b/sctp/CHANGELOG.md @@ -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) diff --git a/sctp/Cargo.toml b/sctp/Cargo.toml index 3d3d0f597..1e49c63c3 100644 --- a/sctp/Cargo.toml +++ b/sctp/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "webrtc-sctp" -version = "0.6.1" +version = "0.6.2" authors = ["Rain Liu "] edition = "2018" description = "A pure Rust implementation of SCTP" diff --git a/webrtc/CHANGELOG.md b/webrtc/CHANGELOG.md index 84ebb7b0d..7b9d7d72e 100644 --- a/webrtc/CHANGELOG.md +++ b/webrtc/CHANGELOG.md @@ -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 diff --git a/webrtc/Cargo.toml b/webrtc/Cargo.toml index 6605141e0..7b951aad8 100644 --- a/webrtc/Cargo.toml +++ b/webrtc/Cargo.toml @@ -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" } diff --git a/webrtc/src/track/track_local/track_local_static_sample.rs b/webrtc/src/track/track_local/track_local_static_sample.rs index c8f8093b7..0a9f8d932 100644 --- a/webrtc/src/track/track_local/track_local_static_sample.rs +++ b/webrtc/src/track/track_local/track_local_static_sample.rs @@ -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)