Reading player state from redis

Raspberry Pi related support

Reading player state from redis

Postby Dhrone » 16 Oct 2016, 17:50

I'm trying to pull player state out of redis but have run into an issue. I can get the key act_player_info but the information in the key appears to only refresh on a state change of the player. I was hoping that I would be able to get the current elapsed playtime for the song. Is there a way to force Rune to update the act_player_info key?
Dhrone
 
Posts: 5
Joined: 17 Apr 2016, 21:57

Re: Reading player state from redis

Postby hondagx35 » 16 Oct 2016, 22:06

User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: Reading player state from redis

Postby Dhrone » 17 Oct 2016, 00:59

Dhrone
 
Posts: 5
Joined: 17 Apr 2016, 21:57

Re: Reading player state from redis

Postby hondagx35 » 17 Oct 2016, 11:37

User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: Reading player state from redis

Postby Dhrone » 17 Oct 2016, 13:00

Thanks! Now that I think about it, I really am wasting a lot of resources re-polling the player state. I may need to rethink that section of the code I'm working on.
Dhrone
 
Posts: 5
Joined: 17 Apr 2016, 21:57

support RuneAudio Donate with PayPal


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 1 guest