Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not showing multiple airplay recievers #70

Open
richwandell opened this issue Jan 20, 2014 · 14 comments
Open

Not showing multiple airplay recievers #70

richwandell opened this issue Jan 20, 2014 · 14 comments

Comments

@richwandell
Copy link

I am trying to use airplay ruby from an ubuntu server machine to play images on devices around my house.

air list does not show more than 1 receiver at a time. For some reason I have to turn off the one in my office to show the one in the living room.

Am I missing something? I am trying to use air view --device LIVINGROOM

@bobbyduhbrain
Copy link

The gem has a list of compatible devices. A non-supported device on the network will cause some problems with 'air list'. I have a couple other devices that are not compatible with the gem and they cause problems like described above.

Is the device in your office an ATV or something else that is airplay compatible?

@richwandell
Copy link
Author

Both devices are running airserver.

@bobbyduhbrain
Copy link

Yes, but what kind of boxes are they?

@richwandell
Copy link
Author

Both windows machines.

@bobbyduhbrain
Copy link

Okay. I'm not sure about what's happening. I have a box that is not on the whitelist for this gem and when I run air list, if it is connected to the network, it causes a problem that crashes the CLI and won't display my other boxes. I figured it might be a similar problem and list is looking for a device that is not on the whitelist.

I don't know if Airserver is compatible with this release as I don't really use it myself. Maybe @elcuervo will have a better answer for you on this.

@bobbyduhbrain
Copy link

#35

I know it's been discussed before, so here's some reading on Airserver compatibility if you're curious

@sodabrew
Copy link
Collaborator

Could you do a little bit of hacking per #63, particularly #63 (comment) and report back the DNS TXT record and the XML /server-info that airserver reports?

@elcuervo
Copy link
Owner

Kudos @sodabrew and @bobbyduhbrain for the support!.
@richwandell as @sodabrew said debugging what is being broadcasted is the best option.
I'm not familiar with the ubuntu packages but this seems to be a good start: http://manpages.ubuntu.com/manpages/raring/man1/avahi-browse.1.html
As far as I can tell you should be able to browse the services with: avahi-browse _airplay._tcp.
I'm currently downloading ubuntu to try several instances of Airplayer and see how it goes.

Thank you for reporting the issue.

@richwandell
Copy link
Author

using dns-sd

_airplay._tcp                                   PTR     THEBEAST._airplay._tcp
THEBEAST._airplay._tcp                          SRV     0 0 7000 thebeast.local. ; Replace with unicast FQDN of target host
THEBEAST._airplay._tcp                          TXT     "deviceid=45:87:FC:52:58:57" "features=0x100029ff" "model=AppleTV3,2" "rhd=1.9.4" "srcvers=150.33" "vv=1"

_airplay._tcp                                   PTR     WINDOWS8._airplay._tcp
WINDOWS8._airplay._tcp                          SRV     0 0 7000 windows8.local. ; Replace with unicast FQDN of target host
WINDOWS8._airplay._tcp                          TXT     "deviceid=01:22:15:88:E4:B7" "features=0x100029ff" "model=AppleTV3,2" "rhd=1.9.4" "srcvers=150.33" "vv=1"

using avahi-browse

+   eth1 IPv4 WINDOWS8                                      _airplay._tcp        local
+   eth1 IPv4 THEBEAST                                      _airplay._tcp        local

output of air list

* WINDOWS8 (AppleTV3,2 running )
  ip: 192.168.2.103
  type: airserver
  resolution: 1920x1080

Server info from "WINDOWS8" machine in the living room

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>deviceid</key>
    <string>01:22:15:88:E4:B7</string>
    <key>features</key>
    <integer>268446207</integer>
    <key>model</key>
    <string>AppleTV3,2</string>
    <key>protovers</key>
    <string>1.0</string>
    <key>srcvers</key>
    <string>150.33</string>
</dict>
</plist>

Server info from "THEBEAST" machine in the office

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>deviceid</key>
    <string>45:87:FC:52:58:57</string>
    <key>features</key>
    <integer>268446207</integer>
    <key>model</key>
    <string>AppleTV3,2</string>
    <key>protovers</key>
    <string>1.0</string>
    <key>srcvers</key>
    <string>150.33</string>
</dict>
</plist>

Is there a way to send media using airserver rb by ip address?
Thanks for looking into this!

@sodabrew
Copy link
Collaborator

As part of the fix for this, the air tool should probably have a dump raw device info command. I can work on that!

@elcuervo
Copy link
Owner

@sodabrew yep... an air doctor could do the trick to help finding issues.

@robobenklein
Copy link

I can verify, I am on a network with more than 50 Apple TVs and only one ever shows up at a time, running it multiple times may result in showing one of two devices. I'd like to see this fixed, but I am new to Ruby.

@elcuervo
Copy link
Owner

@robobenklein Due to the complexity of the Airplay TV protocol and the issues with Ruby and parallelism I'm considering starting a Go version of this gem. I'm quite interested in an scenario with that much Apple TVs. Can you elaborate on why you have so many of them? and the usage scenario for this gem (or a binary equivalent)?.

@robobenklein
Copy link

I am attempting to create a fully functioning Airplay for Ubuntu and other Windows/Linux OSes. https://github.com/robobenklein/ubuntu-airplay

I go to an Apple Endorsed school, so everyone is assigned iPads and every room has an Airplay receiver. I am one of very few who use Linux (Ubuntu) as their primary OS and I'm attempting to fix the problem where we cannot airplay our screens.

Here's my usage:

robo@robo-ubuntu:~$ cd ~/code/ubuntu-airplay/; ruby airplay/air list
* viz2 (5) (AppleTV3,1 running 211.2)
  ip: 10.96.27.87
  mac: 70:56:81:D6:D2:F2
  password?: yes
  type: apple_tv
  resolution: x

robo@robo-ubuntu:~/code/ubuntu-airplay$

Where ubuntu-airplay is the linked repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants