• Stars
    star
    269
  • Rank 152,662 (Top 4 %)
  • Language
    Ruby
  • License
    MIT License
  • Created about 12 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

๐ŸŽฅ Command-line AirPlay video client for Apple TV

AirPlayer

Command-line AirPlay video client for Apple TV

Gem Version Dependency Status Build Status Coverage Status Code Climate

Requirements

  • OS X, Ubuntu, Arch Linux
  • Ruby 2.2 or later
  • Bundler 1.10.0 or later
  • AppleTV 2G or later
  • youtube-dl (If you want to watch YouTube)

For Arch Linux

nss-mdns package is required.

$ sudo pacman -S nss-mdns

or

$ yaourt -S nss-mdns

For 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 --deployment --binstubs
$ bin/airplayer version
1.1.0

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 specific 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

Play video podcast XML

Example: CNN video podcast

$ airplayer play http://rss.cnn.com/services/podcasting/cnnnewsroom/rss.xml

 Source: http://rss.cnn.com/~r/services/podcasting/cnnnewsroom/rss/~5/z7DirHubdP0/exp-travel-insider-hilton-head-island.cnn.m4v
  Title: exp-travel-insider-hilton-head-island.cnn.m4v
 Device: Apple TV (10.0.1.2)
   Time: 00:00:44 |============                                  | 39% Streaming

Play YouTube video

$ airplayer play 'http://www.youtube.com/watch?v=QH2-TGUlwu4'

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

Select Device

If you have multiple "AirPlay" devices, specifying the device number for the following play is available on any device.

Check the AirPlay device number

$ airplayer devices
0: John's Apple TV (10.0.1.2:7000) # John's Apple TV number is 0
1: Jane's Apple TV (10.0.1.3:7000) # Jane's Apple TV number is 1

Use --device or -d options

$ airplayer play --device 1 '~/Movies/GHOST IN THE SHELL.mp4'

Advanced Usage

Register to OS X Service

You can create Automator Service, that opens URL from your browser in airplayer.

automator service

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/m4v
.mp4 video/mpeg4 application/mp4, video/mp4

LICENSE

ยฉ 2012 - 2016 Tomohiro TAIRA.

This project is licensed under the MIT license. See LICENSE for details.

More Repositories

1

fluentular

๐Ÿ“ Fluentular is a Fluentd regular expression editor
Ruby
182
star
2

bundlizer

๐ŸŽ RubyGems and Bundler application manager
Shell
24
star
3

gyazo-cli

๐Ÿ“ท Gyazo command-line uploader
Go
20
star
4

air

Command-line AirPlay video client for Apple TV
Makefile
13
star
5

go-gyazo

Go library for accessing the Gyazo API
Go
7
star
6

dotfiles

My configuration files, scripts.
Shell
5
star
7

zabbix-alertscript-slack

โš ๏ธ Zabbix Alert Script for Slack
Shell
5
star
8

mackerel-plugin-jitsi-videobridge

Jitsi Videobridge custom metrics plugin for mackerel agent.
Go
4
star
9

puppet-mackerel_agent

Puppet module for mackerel-agent
Puppet
4
star
10

gimei

Random Japanese name generator
PHP
4
star
11

2nd_gig

:octocat: Alternative GitHub IRC Gateway
Ruby
4
star
12

xvfb-selenium-server

Headless Selenium server project on Xvfb
Shell
4
star
13

atom-serverspec-snippets

๐Ÿ“ Snippets to help you writing Serverspec specs
CoffeeScript
4
star
14

hackway

Hacker News IRC Gateway
Ruby
3
star
15

cg

Static web page generator
Ruby
3
star
16

kris

Kris is a Ruby IRC bot library - Pluggable, and very simple.
Ruby
3
star
17

u9

u9
Java
3
star
18

redmine_irc_gateway

Redmine IRC Gateway - This project provides an access to Redmine API via IRC Gateway.
Ruby
2
star
19

p

Anything distribution package management wrapper
Shell
2
star
20

badgement

๐Ÿ“› Your personal status companion
Ruby
2
star
21

tf_github

:octocat: A Terraform module for managing teams and members of GitHub organization
HCL
2
star
22

okinawa_movie

ๆฒ–็ธ„็œŒๅ†…ใฎๆ˜ ็”ปไธŠๆ˜ ๆ™‚้–“ใ‚’ใ‚นใƒžใƒผใƒˆใƒ•ใ‚ฉใƒณใ‹ใ‚‰ใƒใ‚งใƒƒใ‚ฏใงใใ‚‹ใ‚ตใƒผใƒ“ใ‚น
Ruby
2
star
23

iig

HatenaBookmark Interest IRC Gateway
Ruby
2
star
24

redmine_text_format_selector

Add text format selector to projects
Ruby
2
star
25

redmine-box

A virtual machine for Redmine
Ruby
2
star
26

apex-python-boilerplate

Python meets Lambda - Apex Python Boilerplate for AWS Lambda function
Ruby
2
star
27

tf_mackerel

A Terraform module for Mackerel AWS Integration.
HCL
2
star
28

downcer

Command-line download tools helper
Ruby
2
star
29

hubot

:octocat: Hubot on Slack
CoffeeScript
2
star
30

itunes-sync-bitcasa

Backup from local iTunes music library to Bitcasa.
Shell
1
star
31

sunsun_menu

็คพๅ“ก้ฃŸๅ ‚ใฎใƒกใƒ‹ใƒฅใƒผใ‚’ใคใถใ‚„ใ bot
1
star
32

mynumber

My Number validator for Rust
Rust
1
star
33

mixi_diary

Post diary to mixi.jp
Ruby
1
star
34

mitten

Mitten is A Ruby IRC Bot Pluggable Framework.
Ruby
1
star
35

warp

Warp to the another world
Shell
1
star
36

old-blog-on-heroku

Jekyll on Heroku. This site is moved to
Ruby
1
star
37

gbiwy

Git Brother Is Watching You
Ruby
1
star
38

tomohiro.me

My domain configuration with AWS by Terraform
HCL
1
star
39

kusakabe

HankakuKana Validator
Ruby
1
star
40

Documents

๐Ÿ“‚ My Documents
1
star
41

pushr

Push notification for Gmail to iPhone
Ruby
1
star
42

gae_twitter_okinawa

Google App Engine #TwitterOkinawa IRC Logs Viewer
Ruby
1
star
43

h

Display help for any command
Shell
1
star
44

citrus-plugins

Citrus is a IRC Bot, Ruby runs. This repository contains Citrus plugins. Citrus Wiki (http://coderepos.org/share/wiki/Citrus)
Ruby
1
star