Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add Max Bitrate option #3628

Merged
merged 53 commits into from
Feb 9, 2025
Merged

Conversation

utkarshdalal
Copy link
Contributor

@utkarshdalal utkarshdalal commented Feb 3, 2025

Description

This option can be useful for those who want to limit the bitrate in order to reduce data usage, which may be useful for those streaming to a mobile device or hosting Sunshine in a cloud service.

This PR is a second attempt at #1463

Screenshot

Issues Fixed or Closed

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Dependency update (updates to dependencies)
  • Documentation update (changes to documentation)
  • Repository update (changes to repository files, e.g. .github/...)

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated the in code docstring/documentation-blocks for new or existing methods/components

ReenigneArcher and others added 30 commits October 30, 2022 15:05
# Conflicts:
#	src/platform/windows/publish.cpp
#	src_assets/common/assets/web/config.html
# Conflicts:
#	docs/source/about/advanced_usage.rst
* added max bitrate to latest version

* Trigger workflow

* removed third party libraries that were making build fail

* removed another unneeded library

* updated tray ref

* attempt 2 at updating tray

* updated third party moonlight as well fuck this repo

* added logging to see if max bitrate is working

* removed extraneous l
@ReenigneArcher ReenigneArcher changed the title Added Max Bitrate option feat: Add Max Bitrate option Feb 3, 2025
ReenigneArcher

This comment was marked as resolved.

src/video.cpp Outdated Show resolved Hide resolved
src/config.h Outdated Show resolved Hide resolved
utkarshdalal and others added 3 commits February 6, 2025 09:22
Check if max_bitrate is > 0 instead of equal

Co-authored-by: ReenigneArcher <[email protected]>
…desSettings.vue


added line break
    fixed some indentation
    fixed label for id
    placeholder should be the default value in most cases
    added missing closing div

Co-authored-by: ReenigneArcher <[email protected]>
Removed unused variables

Co-authored-by: ReenigneArcher <[email protected]>
ReenigneArcher

This comment was marked as resolved.

src/config.h Outdated Show resolved Hide resolved
Copy link

codecov bot commented Feb 9, 2025

Codecov Report

Attention: Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.

Project coverage is 11.61%. Comparing base (ff0ed25) to head (2bbcfcd).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
src/video.cpp 0.00% 0 Missing and 2 partials ⚠️
src/config.cpp 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3628      +/-   ##
==========================================
- Coverage   11.61%   11.61%   -0.01%     
==========================================
  Files          92       92              
  Lines       17333    17335       +2     
  Branches     8096     8099       +3     
==========================================
- Hits         2014     2013       -1     
- Misses      14724    14725       +1     
- Partials      595      597       +2     
Flag Coverage Δ
Linux 11.28% <0.00%> (-0.02%) ⬇️
Windows 13.01% <0.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/config.h 0.00% <ø> (ø)
src/config.cpp 0.00% <0.00%> (ø)
src/video.cpp 21.44% <0.00%> (-0.12%) ⬇️

Copy link

sonarqubecloud bot commented Feb 9, 2025

Quality Gate Failed Quality Gate failed

Failed conditions
1 New issue
1 New Code Smells (required ≤ 0)
C Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@ReenigneArcher ReenigneArcher merged commit 3a88ddc into LizardByte:master Feb 9, 2025
35 of 37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants