Casting to Apple TV

it’s been a while I was trying to figure out if there is a possible way to cast over Apple TV. managed to mirror using popular airplay.jar, it is working very well. Now the next I would like to cast videos and music which is not that straightforward.
And when I play some video and Audio it is not that good with mirroring.
I am using an Apple TV ( 3rd gen ), Yes it is old but working. I would appreciate if someone can help me out to give me some links which I can try by myself.
is it not a good idea to develop an applet for casting or mirroring ?

Thank You.


definitely think this can be answered by the wider ubuntu community - I think its worth posting a question on and/or