Skip to content

Change is_video_enabled to report only main stream#187

Merged
flacjacket merged 1 commit intotchellomello:masterfrom
flacjacket:substream_fix
Sep 10, 2021
Merged

Change is_video_enabled to report only main stream#187
flacjacket merged 1 commit intotchellomello:masterfrom
flacjacket:substream_fix

Conversation

@flacjacket
Copy link
Copy Markdown
Collaborator

The current is_video_enabled function (and video_enabled property, by
extension) will mix together the main and extra (sub) streams when
determining the channel to use. As such, the property will report being
disabled when the substream is disabled even if the main stream is
enabled. Change the behavior of the video_enabled property here to only
report the main stream status on the regular encode. Add parameters to
the is_video_enabled function to allow the stream and type to be
selected.

The current is_video_enabled function (and video_enabled property, by
extension) will mix together the main and extra (sub) streams when
determining the channel to use.  As such, the property will report being
disabled when the substream is disabled even if the main stream is
enabled.  Change the behavior of the video_enabled property here to only
report the main stream status on the regular encode.  Add parameters to
the is_video_enabled function to allow the stream and type to be
selected.
@flacjacket
Copy link
Copy Markdown
Collaborator Author

This is related to home-assistant/core#55661 and should provide a fix for that issue.

@flacjacket flacjacket merged commit a763a5e into tchellomello:master Sep 10, 2021
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.

1 participant