Skip to content

Commit

Permalink
Enable padding when in slideshow below_min_layer (#1790)
Browse files Browse the repository at this point in the history
  • Loading branch information
lodoyun authored Jan 21, 2022
1 parent a612d02 commit a892fbe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion erizo/src/erizo/MediaStream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,7 @@ uint32_t MediaStream::getTargetVideoBitrate() {
if (is_simulcast) {
target_bitrate = std::min(bitrate_from_max_quality_layer, max_bitrate);
}
if (slide_show_mode || !is_simulcast) {
if ((slide_show_mode && !quality_manager_->isEnableSlideshowBelowSpatialLayer()) || !is_simulcast) {
target_bitrate = std::min(bitrate_sent, max_bitrate);
}
if (target_bitrate == 0) {
Expand Down
2 changes: 2 additions & 0 deletions erizo/src/erizo/rtp/QualityManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ class QualityManager: public Service, public std::enable_shared_from_this<Qualit
void forceLayers(int spatial_layer, int temporal_layer);
void enableSlideShowBelowSpatialLayer(bool enabled, int spatial_layer);
void enableFallbackBelowMinLayer(bool enabled);
bool isEnableSlideshowBelowSpatialLayer() { return enable_slideshow_below_spatial_layer_; }
bool isEnableFallbackBelowMinLayer() { return enable_fallback_below_min_layer_; }
void setVideoConstraints(int max_video_width, int max_video_height, int max_video_frame_rate);
void notifyEvent(MediaEventPtr event) override;
void notifyQualityUpdate();
Expand Down

0 comments on commit a892fbe

Please sign in to comment.