tomohiro/airplayer

AirServer compatibility?

Closed this issue · 7 comments

I don't have an Apple TV, but use an iMac running AirServer instead. Works nicely when streaming from iPhone.

I'm trying out airplayer and it won't work for me:

$ airplayer play Archer\ -\ 403\ -\ Legs.mp4
 Source: http://192.168.1.75:7070
  Title: Archer - 403 - Legs.mp4
 Device: izerb (192.168.1.71)
$                                             | 0% Progress

As you can see, it just stops without playing. airplayer play 'http://www.youtube.com/watch?v=QH2-TGUlwu4' will do the same.

Has anyone successfully used airplayer with Airserver? Or am I just doing something wrong?

Thanks for your report.

Has anyone successfully used airplayer with Airserver? Or am I just doing something wrong?

Sorry, I don't have an AirServer, so I can't tested that.

Please try following command:

$ airplay devices

What do you get output?

I get:

$ airplayer devices
0: izerb (192.168.1.71:7000)

Thanks. It looks enabled device, umm...

Is there a way to run airplayer in debug mode, to see at which step it fails?

My AirPlayer is depends on AirPlay gem for access to AirPlay protocol.
If you can write a ruby code, please try execute the airplay example code like this.

require 'airplay'

airplay = Airplay::Client.new

# To stream a video
airplay.send_video("http://www.yo-yo.org/mp4/yu2.mp4")

And other example code in Airplay README.

Thanks for your response.

I've tried sending several videos using the example code. For most of them I get Airplay::Protocol::InvalidMediaError: Airplay::Protocol::InvalidMediaError, and Net::HTTP::Persistent::Error: too many connection resets (due to end of file reached - EOFError) after 0 requests on 4671580, last used 1367681327.0472715 seconds ago for the others.

The videos I used are example mp4's and mov's from Apple. I think they're encoded correctly.

I know this is now more of an issue with the Airplay gem, not yours, but do you have any ideas what's going on?

PS: image files work fine.

I know this is now more of an issue with the Airplay gem, not yours, but do you have any ideas what's going on?

I know that the Airplay gem has been rewriting under the rewrite branch is here.
https://github.com/elcuervo/airplay/tree/rewrite

You can checkout that the branch, and try execute new example code.

But new Airplay gem has not been released yet, I'm waiting now.