-
-
Notifications
You must be signed in to change notification settings - Fork 28.7k
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
Roku Progress Bar #107702
Comments
Hey there @ctalkington, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) roku documentation |
pause triggers an update of polled data. that would explain the update of progress on pause. Since we poll, we track the duration, position, and time at which that position was updated. This should be enough to simulate an accurate playback progress. unless something has changed in the front-end cards or widgets. Has this happened in older versions of HomeAssistant? or something new in 2024? Are you doing anything to customize the Polling intervals (10s default)? |
also did this content have ads? I wonder if that could be making progress appear further since we assume constant playback for progress purposes |
Hello, thanks for the follow up on this. No ads in the content, no custom polling, and I can't say that it ever worked for me as I've only been using HA for a few months. I just tried another test today and confirmed a couple things. My test used both the native Media Control card as well as the Mini Media Player custom card. (1) When I played the content, the progress bar on both cards was at 100%. Here are three attributes from the Roku media player at that time: media_duration: 658 (2) When I pressed pause, the progress bar on both cards immediately dropped to something like 10% ... much closer to the actual progress of the content that had been playing. Here are the attributes at that point: media_duration: 658 (3) And then I play again. Right back to 100% on the progress bar, with these attributes: media_duration: 658 Is it strange and/or relevant that media_position_updated_at is the same all three times? |
@ctalkington - any thoughts based on the above? |
the media_position_updated_at could be the culprit. as it would cause the whole progress equation to be wrong. I don't know what the actual time was but what's suppose to happen is time between updated_at and now is suppose to be added to the position so if the position changes but the timestamp doesn't you are definitely out of sync. |
That makes sense. If this is something you are able to fix I would be happy to help test. Thank you! |
Thank you for fixing this @ctalkington! It’s working perfectly now. |
The problem
When playing content from Roku, the progress bar shown in both the built-in media player card as well as the mini media player do not seem to reflect actual progress while content is playing, however when content is paused the bar jumps to the correct position. Upon resuming play, the bar jumps back to the original (incorrect) position. In one instance, I saw the bar at 100% when just starting content. In other cases, it wasn't quite 100% but still much further ahead than the content actually was. In both cases, pausing the content caused the progress bar to temporarily jump to the correct position. The behavior is identical with both media player cards.
While Playing:
![image](https://private-user-images.githubusercontent.com/146370825/295447163-a40509f7-48c1-467b-a207-9feafde7f67b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkxMDY1MTYsIm5iZiI6MTcxOTEwNjIxNiwicGF0aCI6Ii8xNDYzNzA4MjUvMjk1NDQ3MTYzLWE0MDUwOWY3LTQ4YzEtNDY3Yi1hMjA3LTlmZWFmZGU3ZjY3Yi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNjIzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDYyM1QwMTMwMTZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1kNjAwZDljZjQ3ZWMyNjBhOWNhNDA3MjYzNDZkNWRlN2FiZDcxZGE3NmVlYjlhZmQ2ZGRiNTk1NWI5MzA0Zjk2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.Dol192QxoFS5YeiEIuOrA9fd3rcXtv61FjvOwwdx68g)
While Paused:
![image](https://private-user-images.githubusercontent.com/146370825/295447182-24385ba2-b7ac-415d-a4ff-f34bc6330040.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkxMDY1MTYsIm5iZiI6MTcxOTEwNjIxNiwicGF0aCI6Ii8xNDYzNzA4MjUvMjk1NDQ3MTgyLTI0Mzg1YmEyLWI3YWMtNDE1ZC1hNGZmLWYzNGJjNjMzMDA0MC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNjIzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDYyM1QwMTMwMTZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yNjRkNzM5ZjJhODhkMzhmM2QxMGMxMzExNTIxZGYxMWMwYTU3Njg4OGUzMDllMDYxNWQzNDlmMTIyMDYyNjc4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.iZmSBwuOBrRoAzML9gyZYxUrkiOgE74_MyEnppvdvbw)
What version of Home Assistant Core has the issue?
core-2024.1.2
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Roku
Link to integration documentation on our website
https://www.home-assistant.io/integrations/roku/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
No response
The text was updated successfully, but these errors were encountered: