New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

mympvclient

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mympvclient

client for mpv ipc

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

mympvclient client to mpv ipc

Usage

const MyMpvClient = require('mympvclient');

let myClient = MyMpvClient({debug: true});

myClient.on('error', e => {
  console.log(e.message);
});

myClient.on('event', console.log);

file = 'https://www.youtube.com/watch?v=q43G9FTaomg';

const init = async _ => {
  try {
    await myClient.connect();
    console.log('connected, sending request');
    await myClient.stop();
    await myClient.loadfile(file);
    await myClient.volume(100);
  } catch (e) {
    console.log('aaargh', e.message);
  }
};

init();

API

loadfile(filename, mode = 'replace')

stop()

pause(state = true)

volume(value = 100)

getProperty(property)

setProperty(property, value)

Events

myClient.on('events', console.log);

Keywords

mpv

FAQs

Package last updated on 02 Jan 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts