Page MenuHomePhabricator

[native] Get rid of `mediaProcessConfig` and pass `processMedia` config directly
ClosedPublic

Authored by atul on Apr 17 2023, 3:21 PM.
Tags
None
Referenced Files
F3407214: D7477.id25260.diff
Wed, Dec 4, 4:46 AM
F3407201: D7477.id25235.diff
Wed, Dec 4, 4:39 AM
F3407123: D7477.id25259.diff
Wed, Dec 4, 4:10 AM
F3404975: D7477.diff
Tue, Dec 3, 3:47 PM
Unknown Object (File)
Sat, Nov 9, 8:36 PM
Unknown Object (File)
Sat, Nov 9, 8:36 PM
Unknown Object (File)
Sat, Nov 9, 8:36 PM
Unknown Object (File)
Fri, Nov 8, 9:22 PM
Subscribers

Details

Summary

Originally, I just moved the definition of onTranscodingProgress outside of the mediaProcessConfig function: D7475... but on second thought I think we can remove mediaProcessConfig altogether.

Constructing the MediaProcessConfig directly is a lot simpler and removes unnecesary indirection.

(I'm NOT planning any other InputStateContainer refactors. Noticed this because I was looking specifically at processMedia for image avatar work and it was a 2min change)

Test Plan

flow/careful reading

transcoding progress appears correctly:

35b267.png (534×598 px, 258 KB)

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage