You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 25, 2024. It is now read-only.
Add new properties for getting RTPTransceivers. (#491)
Background and design: docs/design/owt_with_webrtc_apis.md
* Add new properties for getting senders and receivers.
* Property senders is not available in P2P mode.
* Add test cases.
* Move transceivers to TransportSettings.
* Fix a typo.
Copy file name to clipboardExpand all lines: docs/design/owt_with_webrtc_apis.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,8 +9,8 @@ OWT(Open WebRTC Toolkit) Client SDKs provide convenient APIs to create, publish,
9
9
- Set preferred codecs.
10
10
- Disable or enable RTX / RED / FEC.
11
11
#### API Changes
12
-
- A new method `getSender` will be added to `Publication`. It returns an `RTCRtpSender` for certain `Publication`.
13
-
- A new method `getReceiver` will be added to `Subscription`. It returns an `RTCRtpReceiver` for certain `Subscription`.
12
+
- A new member `rtpTransceivers` will be added to `TransportSettings`. It returns an array `RTCRtpReceiver`s for RTP transport.
13
+
- A new member `transport` will be added to `Publication` and `Subscription`. Developers could get `RTPTransceiver`s from its `rtpTransceivers` property.
14
14
- A new method `addTransceiver(DOMString trackKind, sequence<RTCRtpEncodingParameters> sendEncodings)` will be added to `ConferenceClient`. It invokes `RTCPeerConnection.addTransceiver(trackKind, {direction:inactive, sendEncodings:sendEncodings})`, returns an `RTCRtpTransceiver`. Please note that direction is `inactive` until a `publish` with return transceiver is called.
15
15
- The second parameter of `ConferenceClient.publish` accepts an `RTCRtpTransceiver` created by `RTCPeerConnection.addTransceiver`. When this method is called, certain `RTCRtpTransceiver`'s direction is changed to `sendonly`, and its sender's `setStreams` is called with the first parameter's `mediaStream`.
Copy file name to clipboardExpand all lines: docs/mdfiles/changelog.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,8 @@ Change Log
2
2
==========
3
3
# 5.1
4
4
* When subscribe a stream in conference mode, the subscribed MediaStream or BidirectionalStream is associated with a `Owt.Conference.Subscription` instead of a `Owt.Base.RemoteStream`. The `stream` property of a RemoteStream in conference mode is always undefined, while a new property `stream` is added to `Subscription`. It allows a RemoteStream to be subscribed multiple times, as well as subscribing audio and video tracks from different streams.
5
+
* Add a new property `transport` to `Publication` for getting `TransportSettings`.
6
+
* Add a new property `rtpTransceivers` to `TransportSettings` and `TransportConstraints`.
5
7
# 5.0
6
8
* Add WebTransport support for conference mode, see [this design doc](../../design/webtransport.md) for detailed information.
7
9
* All publications and subscriptions for the same conference use the same `PeerConnection`.
0 commit comments