elcuervo / airplay

Airplay bindings to Ruby
MIT License
1.07k stars 70 forks source link

.playing? #80

Open bobbyduhbrain opened 10 years ago

bobbyduhbrain commented 10 years ago

I am curious as to whether there is a way to ping the Apple TV to see if it is currently streaming content (similar to polling whether the 'player' object exists within the gem). This would be a handy feature for what I am using the gem for so I will take up the cause of trying to implement this if possible.

I know the gem tracks the state of the Apple TV based on its own interactions with the device. I am hoping there is a more abstract, generic way to see if the Apple TV is playing any content from any source (netflix, youtube, or other apps all together).

bobbyduhbrain commented 10 years ago

The reason I needed this was for implementing FF, however according to this:

http://nto.github.io/AirPlay.html

Fastforward is a remote command. As far as I can tell this doesn't fastforward or rewind, rather you can seek to a new position. I am going to add the Fastforward and rewind remote commands and submit a pull request.

elcuervo commented 10 years ago

This is really interesting. I'm going to try to see what can I do. ^_^