{"id":15293322,"url":"https://github.com/tomohiro/airplayer","last_synced_at":"2025-04-04T06:06:33.692Z","repository":{"id":4725248,"uuid":"5873768","full_name":"tomohiro/airplayer","owner":"tomohiro","description":":movie_camera: Command-line AirPlay video client for Apple TV","archived":false,"fork":false,"pushed_at":"2022-05-27T17:42:14.000Z","size":147,"stargazers_count":274,"open_issues_count":17,"forks_count":31,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-03-28T05:08:38.160Z","etag":null,"topics":["airplay","ruby"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/airplayer","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tomohiro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-09-19T15:18:07.000Z","updated_at":"2025-02-23T16:25:49.000Z","dependencies_parsed_at":"2022-09-21T00:42:39.510Z","dependency_job_id":null,"html_url":"https://github.com/tomohiro/airplayer","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomohiro%2Fairplayer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomohiro%2Fairplayer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomohiro%2Fairplayer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomohiro%2Fairplayer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomohiro","download_url":"https://codeload.github.com/tomohiro/airplayer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247128741,"owners_count":20888235,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["airplay","ruby"],"created_at":"2024-09-30T16:46:13.760Z","updated_at":"2025-04-04T06:06:33.677Z","avatar_url":"https://github.com/tomohiro.png","language":"Ruby","readme":"AirPlayer\n================================================================================\n\nCommand-line AirPlay video client for Apple TV\n\n[![Gem Version](https://img.shields.io/gem/v/airplayer.svg?style=flat-square)](http://badge.fury.io/rb/airplayer)\n[![Dependency Status](https://img.shields.io/gemnasium/Tomohiro/airplayer.svg?style=flat-square)](https://gemnasium.com/Tomohiro/airplayer)\n[![Build Status](https://img.shields.io/travis/Tomohiro/airplayer.svg?style=flat-square)](https://travis-ci.org/Tomohiro/airplayer)\n[![Coverage Status](https://img.shields.io/coveralls/Tomohiro/airplayer.svg?style=flat-square)](https://coveralls.io/r/Tomohiro/airplayer)\n[![Code Climate](https://img.shields.io/codeclimate/github/Tomohiro/airplayer.svg?style=flat-square)](https://codeclimate.com/github/Tomohiro/airplayer)\n\n\nRequirements\n-------------------------------------------------------------------------------\n\n- OS X, Ubuntu, Arch Linux\n- Ruby 2.2 or later\n- Bundler 1.10.0 or later\n- AppleTV 2G or later\n- [youtube-dl](http://rg3.github.com/youtube-dl/) (If you want to watch YouTube)\n\n\n### For Arch Linux\n\n[nss-mdns](https://www.archlinux.org/packages/extra/x86_64/nss-mdns/) package is required.\n\n```sh\n$ sudo pacman -S nss-mdns\n```\nor\n\n```sh\n$ yaourt -S nss-mdns\n```\n\n### For Ubuntu\n\n```sh\n$ sudo apt-get install rdnssd libavahi-compat-libdnssd-dev\n```\n\n\nInstallation\n--------------------------------------------------------------------------------\n\n### RubyGems\n\n```sh\n$ gem install airplayer\n```\n\n### Bundler\n\n```sh\n$ git clone git://github.com/Tomohiro/airplayer.git\n$ cd airplayer\n$ bundle install --deployment --binstubs\n$ bin/airplayer version\n1.1.0\n```\n\n\nUsage\n--------------------------------------------------------------------------------\n\n### Play online video\n\n```sh\n$ airplayer play http://heinlein.local/Movies/AKIRA.m4v\n\n Source: http://heinlein.local/misc/Movies/AKIRA.m4v\n  Title: AKIRA.m4v\n Device: Apple TV (10.0.1.2)\n   Time: 00:04:25 |=                                              | 3% Streaming\n```\n\n### Play video\n\n```sh\n$ airplayer play '~/Movies/Trailers/007 SKYFALL.mp4'\n\n Source: http://10.0.1.6:7070\n  Title: SKYFALL.mp4\n Device: Apple TV (10.0.1.2)\n   Time: 00:00:20 |=====                                         | 11% Streaming\n```\n\n### Play all video in specific directory\n\n```sh\n$ airplayer play ~/Movies/Trailers\n\n Source: http://10.0.1.6:7070\n  Title: 007 Casino Royale.mp4\n Device: Apple TV (10.0.1.2)\n   Time: 00:02:33 |==============================================| 100% Complete\n\n Source: http://10.0.1.6:7070\n  Title: 007 Quantum Of Solace.mp4\n Device: Apple TV (10.0.1.2)\n   Time: 00:02:01 |==============================================| 100% Complete\n\n Source: http://10.0.1.6:7070\n  Title: 007 SKYFALL.mp4\n Device: Apple TV (10.0.1.2)\n   Time: 00:02:36 |==============================================| 100% Complete\n```\n\n### Play video podcast XML\n\nExample: CNN video podcast\n\n```sh\n$ airplayer play http://rss.cnn.com/services/podcasting/cnnnewsroom/rss.xml\n\n Source: http://rss.cnn.com/~r/services/podcasting/cnnnewsroom/rss/~5/z7DirHubdP0/exp-travel-insider-hilton-head-island.cnn.m4v\n  Title: exp-travel-insider-hilton-head-island.cnn.m4v\n Device: Apple TV (10.0.1.2)\n   Time: 00:00:44 |============                                  | 39% Streaming\n```\n\n\n### Play YouTube video\n\n```sh\n$ airplayer play 'http://www.youtube.com/watch?v=QH2-TGUlwu4'\n```\n\n\n### Repeat play\n\nRepeat one\n\n```sh\n$ airplayer play '~/Movies/Trailers/007 SKYFALL.mp4' --repeat\n```\n\nRepeat all\n\n```sh\n$ airplayer play '~/Movies/Trailers' --repeat\n```\n\n\n### Shuffle play\n\n```sh\n$ airplayer play '~/Movies/Trailers' --shuffle\n```\n\n\n### Select Device\n\nIf you have multiple \"AirPlay\" devices, specifying the device number for the following play is available on any device.\n\nCheck the AirPlay device number\n\n```sh\n$ airplayer devices\n0: John's Apple TV (10.0.1.2:7000) # John's Apple TV number is 0\n1: Jane's Apple TV (10.0.1.3:7000) # Jane's Apple TV number is 1\n```\n\nUse `--device` or `-d` options\n\n```sh\n$ airplayer play --device 1 '~/Movies/GHOST IN THE SHELL.mp4'\n```\n\n\nAdvanced Usage\n--------------------------------------------------------------------------------\n\n### Register to OS X Service\n\nYou can create Automator Service, that opens URL from your browser in airplayer.\n\n![automator service](https://cloud.githubusercontent.com/assets/154571/6997755/aa2599e8-dbc8-11e4-8cc4-9671d9cd8ad7.png)\n\n\nSupported MIME types\n--------------------------------------------------------------------------------\n\n[AirPlay Overview - Configuring Your Server](http://developer.apple.com/library/ios/#documentation/AudioVideo/Conceptual/AirPlayGuide/PreparingYourMediaforAirPlay/PreparingYourMediaforAirPlay.html)\n\nFile extension | MIME type       | Ruby `mime-types`\n-------------- | --------------- | -----------------------------\n.ts            | video/MP2T      | video/mp2t\n.mov           | video/quicktime | video/quicktime\n.m4v           | video/mpeg4     | video/m4v\n.mp4           | video/mpeg4     | application/mp4, video/mp4\n\n\nLICENSE\n--------------------------------------------------------------------------------\n\n\u0026copy; 2012 - 2016 Tomohiro TAIRA.\n\nThis project is licensed under the MIT license. See [LICENSE](LICENSE) for details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomohiro%2Fairplayer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomohiro%2Fairplayer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomohiro%2Fairplayer/lists"}