Hei janui,
Thanks for the reply!
Perhaps we can save the first output and then just reinitialise it whenever a new connection is made? Then obviously let the original code do its magic whenever the airplay activates for new metadata incomming?
I was setting it in act_player_info then push that back for the stream. Thing is, i wasnt able to control how many it pushes.. I was getting spammed in the GUI with new playback outputs. My code was simple.
if(isset($status["currentartist"]) && ($status["currentartist"] !== "" || $status["currentsong"] !== "" || $status["currentalbum"] !== ""))
{
}
else
{
ui_render('playback', json_decode($redis->get('act_player_info'), true))
}
Something down those lines! Again, i wasnt able to control how many ui_render it sends so therefore i was getting constant responses back to the GUI. Perhaps you may have an idea as to how we could push 1 response for every connected device? Then just let the original do the new push. <-- If that makes sense