RESOLVED FIXED 219148
Add support for RTCRtpScriptTransform
https://bugs.webkit.org/show_bug.cgi?id=219148
Summary Add support for RTCRtpScriptTransform
youenn fablet
Reported 2020-11-19 00:27:12 PST
Add support for RTCRtpScriptTransform
Attachments
Patch (166.39 KB, patch)
2020-11-19 02:41 PST, youenn fablet
ews-feeder: commit-queue-
Patch (171.06 KB, patch)
2020-11-19 02:49 PST, youenn fablet
ews-feeder: commit-queue-
Patch (171.41 KB, patch)
2020-11-19 02:51 PST, youenn fablet
ews-feeder: commit-queue-
Patch (171.43 KB, patch)
2020-11-19 03:01 PST, youenn fablet
ews-feeder: commit-queue-
Patch (171.46 KB, patch)
2020-11-19 03:12 PST, youenn fablet
no flags
Patch (171.58 KB, patch)
2020-11-19 04:00 PST, youenn fablet
no flags
Patch for landing (171.73 KB, patch)
2020-11-20 00:50 PST, youenn fablet
no flags
youenn fablet
Comment 1 2020-11-19 02:41:18 PST
youenn fablet
Comment 2 2020-11-19 02:49:25 PST
youenn fablet
Comment 3 2020-11-19 02:51:40 PST
youenn fablet
Comment 4 2020-11-19 03:01:54 PST
youenn fablet
Comment 5 2020-11-19 03:12:03 PST
youenn fablet
Comment 6 2020-11-19 04:00:40 PST
Eric Carlson
Comment 7 2020-11-19 13:02:23 PST
Comment on attachment 414564 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=414564&action=review > Source/WebCore/Modules/mediastream/RTCRtpScriptTransform.cpp:117 > + m_backend = makeRef(backend); You only set `m_backend` if `setupTransformer` fails? > Source/WebCore/Modules/mediastream/RTCRtpScriptTransformer.cpp:174 > + auto value = isAudio ? toJS(&globalObject, &globalObject, RTCEncodedAudioFrame::create(WTFMove(frame))) : toJS(&globalObject, &globalObject, RTCEncodedAudioFrame::create(WTFMove(frame))); Don’t you want to create a Video frame when `isAudio` is false?
youenn fablet
Comment 8 2020-11-20 00:35:26 PST
(In reply to Eric Carlson from comment #7) > Comment on attachment 414564 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=414564&action=review > > > Source/WebCore/Modules/mediastream/RTCRtpScriptTransform.cpp:117 > > + m_backend = makeRef(backend); > > You only set `m_backend` if `setupTransformer` fails? Yes, it means the transformer is not yet there but will be soon. So we keep a ref to m_backend so that we can call setupTransformer at the time the transformer is hooked to its transform. > > Source/WebCore/Modules/mediastream/RTCRtpScriptTransformer.cpp:174 > > + auto value = isAudio ? toJS(&globalObject, &globalObject, RTCEncodedAudioFrame::create(WTFMove(frame))) : toJS(&globalObject, &globalObject, RTCEncodedAudioFrame::create(WTFMove(frame))); > > Don’t you want to create a Video frame when `isAudio` is false? Good catch, will add a test for it.
youenn fablet
Comment 9 2020-11-20 00:50:38 PST
Created attachment 414659 [details] Patch for landing
EWS
Comment 10 2020-11-20 04:25:55 PST
Committed r270107: <https://trac.webkit.org/changeset/270107> All reviewed patches have been landed. Closing bug and clearing flags on attachment 414659 [details].
Radar WebKit Bug Importer
Comment 11 2020-11-20 04:26:16 PST
Note You need to log in before you can comment on or make changes to this bug.