problem with ATV 2 after jailbreak

Hi everyone, i already did jailbreak tony ATV 2nd gen, but all the time i had a problem with air play. i have macbook and iPhone and sometime without any reason the airplay sign from iTunes and iPhone just disappear and i have to restart all my devices. in additional, most of time i could’t get into my library from the apple tv. most of the time this 2 issues came together/

there is anyone who got problem like this and can help me?