Query your local network for Apple TV's or other AirPlay video compatible devices and have them play videos.
For programmatic use, install using:
npm install airplayer --save
Or install globally to use via the command line:
npm install airplayer --global
Example Programmatic Usage
var airplayer =var list =list
Example CLI Usage
If you install the module gobally, simply run the
with the file you want to play as the first argument.
airplayer command will look for an Apple TV on your local network.
When one is found, it will start playing the chosen video. Use the
-i to select the Apple TV to stream to.
$ airplayer my-video.m4v
Note that the video must be in a format supported by your Apple TV in
airplayer to play it.
var list = airplayer()
Creates a AirPlay list. When creating a new list it will call
list.update() once. It is up to you to call afterwards in case you
want to update the list.
An array of the players that have been found on the local network so far.
Updates the player list by querying the local network for
Stop browsing for players.
Emitted when a new player is found on the local network.
player is an instance of
the following extra properties:
name- The human readable name of the AirPlay device