-
-
Notifications
You must be signed in to change notification settings - Fork 28.5k
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
Add functionality to webostv media_player #27283
Conversation
Hey all just wondering what the process is here? There is no code owner for this integration how can we get this pull approved? |
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.
Process should be hardened to key off of the MEDIA_TYPE_APP media type and use kwargs to determine the app.
This will ensure that the behavior is explicitly handled and would avoid potential problems if something other than a channel or app is sent.
https://www.home-assistant.io/integrations/media_player/#service-media_playerplay_media If guessing this is not up to date as the I also tried passing Worst case we can 'hardcode' the webos appid based on the
but this makes youtube hard to integrate as the youtube app takes the youtube video ID as the media_id variable so there's nothing really to match against unless we passed the entire youtube URL and used regex to extract the video ID which is probably not something we want within the integration. Are we happy with matching apps based on media_id string and 'falling back' on youtube app? This will result in an error in the webos youtube app due to invalid video IDs if |
…ton commands, and callback state updates
based on new local constant media types
I just pushed another commit where I added the media_player constant URL and two local constants for netflix and youtube. I hope this is alright, I was reading through an old PR #13588 and balloob mentioned to do it this way. I'll update the documentation shortly. |
@bendavid can you review this PR? |
The changes look technically fine, however I wonder if it would be better to just add a dedicated platform specific service in the webostv domain which maps directly onto launch_app_with_content_id. The scaffolding for this is already implemented for generic and button commands in #29296 so this would be a straightforward addition once that one is merged... |
Ok, I'll close here since we want a different approach. |
Breaking Change:
Nil
Description:
Added ability to launch apps with contentId set using play_media service. Adds a line so if media_play is called and media_type is not channel then attempt to launch an app with the contentid parameter set. Previously if media_type was not channel the function just ended.
Documentation has been updated and has some examples.
Pull request with documentation for home-assistant.io (if applicable): home-assistant/home-assistant.io#10650
Checklist:
tox
. Your PR cannot be merged unless tests passIf user exposed functionality or configuration variables are added/changed: