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

[kodi] Support for more audio streams through the HTTP audio servlet #15192

Merged
merged 4 commits into from
Jul 8, 2023

Conversation

dalgwen
Copy link
Contributor

@dalgwen dalgwen commented Jul 6, 2023

Kodi audio sink supporting more audio streams, with the help of the HTTP audio servlet new capabilities.
Also (slightly) better volume restoration from openHAB.

Related to #15113

Note : The previous system for volume restoration (inside kodi binding) doesn't seem to work. It seems to try to guess when play ends by waiting for state that doesn't happen, and/or for not enough time ?
Plus, when openHAB tried to handle volume, both of them modified it at different time, leading to a mess. I added a boolean to avoid conflict.

So I replace it with the sound duration analysis from the servlet.
It's better but it is not reliable either, because Kodi keep requesting the stream again and again, resetting the time we consider as the "start".

[kodi] Audio sink supporting more audio streams

Related to openhab#15113

Signed-off-by: Gwendal Roulleau <[email protected]>
@dalgwen dalgwen requested review from pail23 and cweitkamp as code owners July 6, 2023 15:56
@dalgwen dalgwen mentioned this pull request Jul 6, 2023
13 tasks
Apply code review and fix a x10 factor in a wait loop.

Signed-off-by: Gwendal Roulleau <[email protected]>
@lolodomo lolodomo added the enhancement An enhancement or new feature for an existing add-on label Jul 7, 2023
Apply code review to handle URLAudioStream asynchronously.

Signed-off-by: Gwendal Roulleau <[email protected]>
Copy link
Contributor

@lolodomo lolodomo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you

@lolodomo lolodomo merged commit 081bf3a into openhab:main Jul 8, 2023
@lolodomo lolodomo added this to the 4.0 milestone Jul 8, 2023
@dalgwen dalgwen deleted the kodi_audiosink branch July 8, 2023 09:43
markus7017 pushed a commit to markus7017/openhab-addons that referenced this pull request Jul 8, 2023
…penhab#15192)

* [kodi] Support for more audio streams through the HTTP audio servlet

[kodi] Audio sink supporting more audio streams

Related to openhab#15113

---------

Signed-off-by: Gwendal Roulleau <[email protected]>
matchews pushed a commit to matchews/openhab-addons that referenced this pull request Aug 9, 2023
…penhab#15192)

* [kodi] Support for more audio streams through the HTTP audio servlet

[kodi] Audio sink supporting more audio streams

Related to openhab#15113

---------

Signed-off-by: Gwendal Roulleau <[email protected]>
Signed-off-by: Matt Myers <[email protected]>
austvik pushed a commit to austvik/openhab-addons that referenced this pull request Mar 27, 2024
…penhab#15192)

* [kodi] Support for more audio streams through the HTTP audio servlet

[kodi] Audio sink supporting more audio streams

Related to openhab#15113

---------

Signed-off-by: Gwendal Roulleau <[email protected]>
Signed-off-by: Jørgen Austvik <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement or new feature for an existing add-on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants