Make video quality analyzer compatible with real SFU in the network
Bug: webrtc:11557 Change-Id: I8ab1fb0896e267f30856a45df6099bd9aae9bc03 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/174801 Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Commit-Queue: Artem Titov <titovartem@webrtc.org> Cr-Commit-Position: refs/heads/master@{#31216}
This commit is contained in:
@ -131,6 +131,10 @@ class PeerConnectionE2EQualityTestFixture {
|
||||
// available layer and won't restore lower layers, so analyzer won't
|
||||
// receive required data which will cause wrong results or test failures.
|
||||
struct VideoSimulcastConfig {
|
||||
explicit VideoSimulcastConfig(int simulcast_streams_count)
|
||||
: simulcast_streams_count(simulcast_streams_count) {
|
||||
RTC_CHECK_GT(simulcast_streams_count, 1);
|
||||
}
|
||||
VideoSimulcastConfig(int simulcast_streams_count, int target_spatial_index)
|
||||
: simulcast_streams_count(simulcast_streams_count),
|
||||
target_spatial_index(target_spatial_index) {
|
||||
@ -152,7 +156,10 @@ class PeerConnectionE2EQualityTestFixture {
|
||||
// in such case |target_spatial_index| will specify the top interesting
|
||||
// spatial layer and all layers below, including target one will be
|
||||
// processed. All layers above target one will be dropped.
|
||||
int target_spatial_index;
|
||||
// If not specified than whatever stream will be received will be analyzed.
|
||||
// It requires Selective Forwarding Unit (SFU) to be configured in the
|
||||
// network.
|
||||
absl::optional<int> target_spatial_index;
|
||||
};
|
||||
|
||||
// Contains properties of single video stream.
|
||||
|
||||
Reference in New Issue
Block a user