-
Notifications
You must be signed in to change notification settings - Fork 1
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
Don't add automatically ffmpeg audio transcoding #24
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #24 +/- ##
=======================================
Coverage 97.98% 97.98%
=======================================
Files 7 7
Lines 298 298
Branches 50 50
=======================================
Hits 292 292
Misses 4 4
Partials 2 2 ☔ View full report in Codecov by Sentry. |
|
||
@handle_error | ||
async def add(self, name: str, source: str) -> None: | ||
async def add(self, name: str, sources: str | list[str]) -> None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needed to move the function add
before list
otherwise mypy get confused with the list[str]
type
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How is the string type handled for sources
parameter? Is that a single source? Can that be passed as is?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See de00a76
(#24)
It will only add one src
query param instead of multiple
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Proposed Changes
Until now, we automatically added
f"ffmpeg:{name}#audio=opus"
as a second stream to have WebRTC audio support.But there are cameras which don't have audio at all, and therefore the caller should decide, which sources should be added.