Stop video when tab put in background #11250
Replies: 5 comments
-
Should we also handle video in more-info? |
Beta Was this translation helpful? Give feedback.
-
Can we disconnect all dialogs from the DOM just as we do with the active panel? |
Beta Was this translation helpful? Give feedback.
-
I don't think we have a clear overview of all dialogs, except all element in -- edit |
Beta Was this translation helpful? Give feedback.
-
That will work. Note that more info dialog does not work with the dialog manager and would need it's own fix. |
Beta Was this translation helpful? Give feedback.
-
Just needs to be done for More info. This is done in lovelace |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
The request
We should pause all video streams when the tab with the Home Assistant app is no longer visible. This can be achieved using the Page Visibility API.
This will prevent Home Assistant from consuming a lot of battery.
I think that the best approach here is to make this available to all of Home Assistant by implementing this in the
partial-panel-resolver
and just disconnect the panel element. That way alldisconnectedCallback
will be called of every element, giving them the time to clean up.The alternatives
Use a lot of data in the background.
Related issues/PRs:
home-assistant/android#542
home-assistant/android#545
Additional information
Beta Was this translation helpful? Give feedback.
All reactions