0.1.0 • Published 6 years ago

mpv-wrapper v0.1.0

Weekly downloads
1
License
ISC
Repository
github
Last release
6 years ago

mpv-wrapper

Let an mpv instance play media.

npm version ISC-licensed chat with me on Gitter support me on Patreon

Installing

npm install mpv-wrapper

Usage

const createPlayer = require('mpv-wrapper')

createPlayer((err, player) => {
	if (err) return console.error(err)

	player.observeProperty('filename', val => console.log('filename', val))
	player.onIdle(() => player.quit())
	player.loadfile('/path/to/audio.ogg')
})

Check out a more detailed example.

Related

  • mpv-ipc – A simple, mostly dumb, client for mpv's IPC interface. mpv-wrapper is based on this.
  • mplayer-wrapper – Let an mplayer instance play media.

Contributing

If you have a question or have difficulties using mpv-wrapper, please double-check your code and setup first. If you think you have found a bug or want to propose a feature, refer to the issues page.