Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Command-line AirPlay video client for Apple TV
branch: master

This branch is 118 commits behind Tomohiro:master

Failed to load latest commit information.
bin refactor
lib check playable
spec check playable
.gitignore add ignore: vendor
.rspec add rspec
.travis.yml install dependencies at before_install
Gemfile first commit
Gemfile.lock play a Podcast XML #5
Guardfile add guard-spec for TDD
LICENSE first commit
README.markdown add shuffle play
Rakefile add rspec
airplayer.gemspec play a Podcast XML #5

README.markdown

AirPlayer

Command-line AirPlay video client for Apple TV

Build Status Dependency Status Code Climate endorse


Requirements

  • OSX or Ubuntu
  • Ruby 1.9.3 or later
  • AppleTV 2G or later

Ubuntu

$ sudo apt-get install rdnssd libavahi-compat-libdnssd-dev

Installation

RubyGems

$ gem install airplayer

Bundler

$ git clone git://github.com/Tomohiro/airplayer.git
$ cd airplayer
$ bundle install --path vendor/bundle

Usage

Play online video

$ airplayer play http://heinlein.local/Movies/AKIRA.m4v

 Source: http://heinlein.local/misc/Movies/AKIRA.m4v
  Title: AKIRA.m4v
 Device: Apple TV (10.0.1.2)
   Time: 00:04:25 |=                                              | 3% Streaming

Play video

$ airplayer play '~/Movies/Trailers/007 SKYFALL.mp4'

 Source: http://10.0.1.6:7070
  Title: SKYFALL.mp4
 Device: Apple TV (10.0.1.2)
   Time: 00:00:20 |=====                                         | 11% Streaming

Play all video in directory

$ airplayer play ~/Movies/Trailers

 Source: http://10.0.1.6:7070
  Title: 007 Casino Royale.mp4
 Device: Apple TV (10.0.1.2)
   Time: 00:02:33 |==============================================| 100% Complete

 Source: http://10.0.1.6:7070
  Title: 007 Quantum Of Solace.mp4
 Device: Apple TV (10.0.1.2)
   Time: 00:02:01 |==============================================| 100% Complete

 Source: http://10.0.1.6:7070
  Title: 007 SKYFALL.mp4
 Device: Apple TV (10.0.1.2)
   Time: 00:02:36 |==============================================| 100% Complete

Repeat play

Repeat one

$ airplayer play '~/Movies/Trailers/007 SKYFALL.mp4' --repeat

Repeat all

$ airplayer play '~/Movies/Trailers' --repeat

Shuffle play

$ airplayer play '~/Movies/Trailers' --shuffle

Supported MIME types

AirPlay Overview - Configuring Your Server

File extension MIME type Ruby mime-types
.ts video/MP2T video/MP2T
.mov video/quicktime video/quicktime
.m4v video/mpeg4 video/vnd.objectvideo
.mp4 video/mpeg4 application/mp4, video/mp4

LICENSE

© 2012 Tomohiro, TAIRA. This project is licensed under the MIT license. See LICENSE for details.

Something went wrong with that request. Please try again.