Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

small fix README.

latest commit bd690aafca
Wataru MIYAGUNI authored
README.mkdn

Airplay for Emacs

A client for AirPlay Server.

Requirements

  • Emacs 24 or higher

Installation

You can install from MELPA with package.el

M-x package-install RET airplay

Basic Usage

(require 'airplay)

(airplay/image:view "appletv.jpg")
(airplay/video:play "https://dl.dropbox.com/u/2532139/IMG_0381XXX.m4v")

Sending Images

Select picture file (at local machine).

(airplay/image:view "appletv.jpg")
(airplay:stop)

Transitions

(airplay/image:view "appletv.jpg" :none) ;; same no args.
(airplay/image:view "appletv.jpg" :slide_left)
(airplay/image:view "appletv.jpg" :slide_right)
(airplay/image:view "appletv.jpg" :dissolve)

Play video

Play movie (via HTTP)

(airplay/video:play "https://dl.dropbox.com/u/2532139/IMG_0381XXX.m4v")

(airplay/video:scrub (lambda (position duration)
                       (message "%s / %s" position duration)))
  ;; => "38.0 / 90.0"

(airplay/video:info)
  ;; => (message "Playing now!!")

(airplay:stop)

(airplay/video:info)
  ;; => (message "Not playing...")

Play local movie file.

(airplay/video:play "~/Dropbox/Public/IMG_0381XXX.m4v")

Control

(airplay/video:pause)
(airplay/video:resume)
(airplay/video:seek 20) ;; => seek to 20 seconds in playing video.

Useful methods

Browsing Apple TV in LAN

(airplay/device:browse) ;; => ("192.168.0.10" . 7000)
                        ;; if cannot find , (nil . nil)

If want to specify, following code.

(setq airplay->host "192.168.0.10")
(setq airplay->port 7000)

LICENSE

MIT License. see airplay.el

Something went wrong with that request. Please try again.