
Security News
MCP Steering Committee Launches Official MCP Registry in Preview
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
mpv-controller
Advanced tools
Node.js module which controls mpv media player written in ES2015.
npm: https://www.npmjs.com/package/mpv-controller
npm install mpv-controller
const mpv = require('mpv-controller');
var player = new mpv(status => {
console.log(status);
});
player.limitStatusMessages(5);
player.play("/path/to/video.mkv");
setTimeout(player.pause.bind(player), 5000); // Pauses after 5 seconds
var player = new mpv(statusListener);
where statusListener will receive an object containing playback status on the form
{
playing: true,
buffering: false,
elapsed: 282,
total: 421,
elapsedStr: "00:04:42",
totalStr: "00:07:01",
progress: 0.6698
}
or
{
exit: true
}
if mpv has been closed.
player.play(video [, subtitles [, mpv-flags]]);
player.togglePause();
player.stop();
player.seekForward(); // Seek 5 seconds forwards
player.seekBackward(); // Seek 5 seconds backwards
player.bigSeekForward(); // Seek 30 seconds forwards
player.bigSeekBackward(); // Seek 30 secons Backwards
player.seek(seconds [, mode]); // See mpv documentation for modes
player.displayStatus(); // Displays status hud
player.increaseSpeed();
player.decreaseSpeed();
player.resetSpeed();
player.decreaseVolume();
player.increaseVolume();
player.mute();
player.toggleFullscreen();
player.exitFullscreen();
player.toggleSubtitle();
player.addSubtitle(filepath);
Will show every mod update returned by mpv. mod = 5 will show every fifth update.
player.limitStatusMessages(mod);
player.play("https://www.youtube.com/watch?v=rOOdfugvsIY", ["--fs", "--ytdl-format=best"]);
FAQs
Controller for mpv media player.
We found that mpv-controller demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.