-
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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
Universal media player: Document process_media_id
#35848
base: next
Are you sure you want to change the base?
Conversation
It seems that this PR is targeted against an incorrect branch since it has a parent PR on one of our codebases. Documentation that needs to be updated for an upcoming release should target the |
❌ Deploy Preview for home-assistant-docs failed.
|
📝 Walkthrough📝 WalkthroughWalkthroughThe documentation for the universal media player integration in Home Assistant has been updated to include a new configuration option, Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant HomeAssistant
participant MediaPlayer
User->>HomeAssistant: Configure universal media player
HomeAssistant->>MediaPlayer: Set process_media_id (default: false)
alt process_media_id is true
MediaPlayer->>MediaPlayer: Rewrite media source URLs
MediaPlayer->>HomeAssistant: Provide external URLs with tokens
else process_media_id is false
MediaPlayer->>HomeAssistant: Use default media source URLs
end
HomeAssistant->>User: Confirm configuration
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Actionable comments posted: 0
🧹 Outside diff range and nitpick comments (1)
source/_integrations/universal.markdown (1)
126-127
: Fix hyphenation in "short-lived"The description is comprehensive and clear, but contains a minor grammatical issue.
-Setting `process_media_id` to true activates rewriting of `media-source:` URLs in the `media_content_id` variable. In that case, the `play_media` action of children media players and the custom `play_media` command no longer receive `media-source:` URLs in their `media_content_id` parameter which gets converted to external URLs with short lived tokens. Additionally, media browsing support is enabled as a fallback if `browse_media_entity` is not provided or invalid. +Setting `process_media_id` to true activates rewriting of `media-source:` URLs in the `media_content_id` variable. In that case, the `play_media` action of children media players and the custom `play_media` command no longer receive `media-source:` URLs in their `media_content_id` parameter which gets converted to external URLs with short-lived tokens. Additionally, media browsing support is enabled as a fallback if `browse_media_entity` is not provided or invalid.🧰 Tools
🪛 LanguageTool
[misspelling] ~126-~126: This word is normally spelled with a hyphen.
Context: ...ch gets converted to external URLs with short lived tokens. Additionally, media browsing su...(EN_COMPOUNDS_SHORT_LIVED)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (1)
source/_integrations/universal.markdown
(2 hunks)
🧰 Additional context used
🪛 LanguageTool
source/_integrations/universal.markdown
[misspelling] ~126-~126: This word is normally spelled with a hyphen.
Context: ...ch gets converted to external URLs with short lived tokens. Additionally, media browsing su...
(EN_COMPOUNDS_SHORT_LIVED)
🔇 Additional comments (1)
source/_integrations/universal.markdown (1)
106-109
: LGTM! Clear and well-structured configuration documentation.
The new configuration option is well documented with all required elements:
- Description is clear and concise
- Default value is specified
- Required status is indicated
- Data type is correctly specified
ad5c75d
to
3a35ac6
Compare
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.
Actionable comments posted: 0
🧹 Outside diff range and nitpick comments (2)
source/_integrations/universal.markdown (2)
106-109
: LGTM with minor clarity improvement suggestionThe configuration documentation follows the standard format and provides essential information. Consider adding an example use case to make it more concrete for users.
process_media_id: description: Enable rewriting of media source URLs for children or custom commands expecting URLs accessible from outside Home Assistant without authentication (default false). + # Add example: + # For example, enable this when your child media player needs direct access to media files without going through Home Assistant's authentication. required: false type: boolean
126-127
: Improve readability and fix grammarThe explanation is technically accurate but could be more readable. Consider restructuring and fixing the grammar.
-Setting `process_media_id` to true activates rewriting of `media-source:` URLs in the `media_content_id` variable. In that case, the `play_media` action of children media players and the custom `play_media` command no longer receive `media-source:` URLs in their `media_content_id` parameter which gets converted to external URLs with short-lived tokens. Additionally, media browsing support is enabled as a fallback if `browse_media_entity` is not provided or invalid. +When `process_media_id` is set to true: + +1. The `media_content_id` variable will rewrite `media-source:` URLs into external URLs with short-lived tokens. +2. Both child media players and custom `play_media` commands will receive these converted external URLs instead of `media-source:` URLs. +3. Media browsing support is automatically enabled as a fallback when `browse_media_entity` is not provided or is invalid.🧰 Tools
🪛 LanguageTool
[uncategorized] ~126-~126: Possible missing comma found.
Context: ...urce:URLs in their
media_content_id` parameter which gets converted to external URLs w...(AI_HYDRA_LEO_MISSING_COMMA)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (1)
source/_integrations/universal.markdown
(2 hunks)
🧰 Additional context used
🪛 LanguageTool
source/_integrations/universal.markdown
[uncategorized] ~126-~126: Possible missing comma found.
Context: ...urce:URLs in their
media_content_id` parameter which gets converted to external URLs w...
(AI_HYDRA_LEO_MISSING_COMMA)
Proposed change
Document the new
process_media_id
featureType of change
current
branch).current
branch).next
branch).next
branch).Additional information
media-source
into external urls core#131035Checklist
current
branch.next
branch.Summary by CodeRabbit
New Features
process_media_id
, for the universal media player integration, allowing for external URL access without authentication.Documentation
media_content_id
.