- From: Jan-Ivar Bruaroey via GitHub <sysbot+gh@w3.org>
- Date: Thu, 04 Jan 2024 17:27:05 +0000
- To: public-webrtc-logs@w3.org
> actually const transceiver = pc.addTransceiver("video", {transform: transform, sendTrack: track}) looks like a nice interface to me. Great! But isn't that just ```js const transceiver = pc.addTransceiver(track, {transform: transform}); ``` ? Would adding this help? It would probably need to be `sendTransform` and `receiveTransform` then. A `foo = new Foo({bar})` initializer for `foo.bar = bar` seems redundant except for readonly attributes. E.g. there likely wouldn't be any semantic difference between: ```js const transceiver = pc.addTransceiver(track, {sendTransform, receiveTransform}); ``` ...and: ```js const transceiver = pc.addTransceiver(track); transceiver.sender.transform = sendTransform; transceiver.receiver.transform = receiveTransform; ``` -- GitHub Notification of comment by jan-ivar Please view or discuss this issue at https://github.com/w3c/webrtc-encoded-transform/pull/186#issuecomment-1877491231 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 4 January 2024 17:27:11 UTC