branch: elpa/mpv commit 059135de3979e044f14503806047476d9be9f0e8 Author: Johann Klähn <kljoh...@gmail.com> Commit: Johann Klähn <kljoh...@gmail.com>
version 0.1.0 --- README.md | 47 ++++++++++++++++++++++------------------------- mpv.el | 2 ++ 2 files changed, 24 insertions(+), 25 deletions(-) diff --git a/README.md b/README.md index 2df0cfdd46..631f5f9d29 100644 --- a/README.md +++ b/README.md @@ -1,31 +1,28 @@ -# mpv.el +# mpv.el [](http://melpa.org/#/mpv) +*control mpv for easy note-taking* This package is a potpourri of helper functions to control a [mpv][] -process via its IPC interface. After installing you might want to add -some of the following to your init file to ease transcription of videos -using Org-mode: - -```emacs -(defun org-timer-item--mpv-insert-playback-position (fun &rest args) - "When no org timer is running but mpv is alive, insert playback position." - (if (and - (not org-timer-start-time) - (mpv-live-p)) - (mpv-insert-playback-position t) - (apply fun args))) -(advice-add 'org-timer-item :around - #'org-timer-item--mpv-insert-playback-position) - -(org-add-link-type "mpv" #'mpv-play) -(defun org-mpv-complete-link (&optional arg) - (replace-regexp-in-string - "file:" "mpv:" - (org-file-complete-link arg) - t t)) -(add-hook 'org-open-at-point-functions #'mpv-seek-to-position-at-point) -``` +process via its IPC interface. + +## Installation + +mpv.el is available on [MELPA][]: + + M-x package-install mpv + +To start playback, have a look at `mpv-play`. +Among others, mpv.el provides + +- `mpv-pause` +- `mpv-kill` +- `mpv-seek-forward` / `mpv-seek-backward` +- `mpv-speed-increase` / `mpv-speed-decrease` +- `mpv-insert-playback-position` +- `mpv-seek-to-position-at-point` Apart from that, just have a look at the interactive functions in -[mpv.el](mpv.el). +[mpv.el](mpv.el) or the [wiki][] for tips on configuration. [mpv]: http://mpv.io/ +[MELPA]: http://melpa.milkbox.net +[wiki]: https://github.com/kljohann/mpv.el/wiki diff --git a/mpv.el b/mpv.el index dbabfba262..7b91bb4f16 100644 --- a/mpv.el +++ b/mpv.el @@ -3,6 +3,8 @@ ;; Copyright (C) 2014 Johann Klähn ;; Author: Johann Klähn <kljoh...@gmail.com> +;; URL: https://github.com/kljohann/mpv.el +;; Version: 0.1.0 ;; Keywords: tools, multimedia ;; Package-Requires: ((cl-lib "0.5") (emacs "24") (json "1.3") (names "0.5.4") (org "8.0"))