Pass Environment to custom FecController at construction
To allow custom FecController use propagated rather than global field trials
note that there is one FecControllerFactory per peer connection factory,
but FecController is created per peer connection and may use per peer connection field trials.
Bug: webrtc:10335
Change-Id: Id25bfaf4b49d4f6d551730c8fd55596ddc49ab47
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/333400
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Commit-Queue: Danil Chapovalov <danilchap@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#41478}
diff --git a/api/BUILD.gn b/api/BUILD.gn
index 3413b93..d92962c 100644
--- a/api/BUILD.gn
+++ b/api/BUILD.gn
@@ -889,6 +889,8 @@
deps = [
"../modules:module_fec_api",
+ "../rtc_base:checks",
+ "environment",
"video:video_frame_type",
]
}