You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to try and add a progress bar to my Kodi instance, but am unsure how to get the desired effect. I see media_player entities have media_position and media_duration attributes that would allow the calculation but not sure how to plug them in?
media_position: 2.488
media_duration: 241
The text was updated successfully, but these errors were encountered:
Hey, I'm not sure the timer bar card is the best fit for this problem. Since media_position updates on its own, something like bar card would be a better fit, even though it won't look the same as this card.
That said, since the player is progressing with time you could probably force the card to work with the media player. The way I'd do it is to use templates to subtract media_position from media_duration to calculate the "media time remaining". Then, you can use media_duration configured as the duration together with "media time remaining" as the remain_time to configure the card. Hope that helps!
I'd like to try and add a progress bar to my Kodi instance, but am unsure how to get the desired effect. I see media_player entities have media_position and media_duration attributes that would allow the calculation but not sure how to plug them in?
The text was updated successfully, but these errors were encountered: