Code Monkey home page Code Monkey logo

mpvnet's Introduction

mpv.net

mpv.net is a libmpv based media player for Windows, it looks and works like mpv, even shares the settings and therefore the mpv documentation applies, it can be found at:

https://mpv.io/manual/master/

Features

  • mpv's OSC, IPC, Lua/JS, conf files and more
  • Context menu which can be customized
  • Addons implemented with the Managed Extension Framework (MEF)
  • C# scripts implemented with CS-Script

Context Menu

The context menu can be customized via input.conf file located at:

C:\Users\Frank\AppData\Roaming\mpv\input.conf

https://github.com/stax76/mpvnet/blob/master/mpvnet/Resources/input_conf.txt

C# Scripting

A simple C# script located at: C:\Users\Frank\AppData\Roaming\mpv\scripts\test.cs

using mpvnet;

class Script
{
    public Script()
    {
        var fs = mpv.GetStringProp("fullscreen");
        mpv.Command("show-text", "fullscreen: " + fs);
        mpv.ObserveBoolProp("fullscreen", FullscreenChange);
    }

    void FullscreenChange(bool val)
    {
        mpv.Command("show-text", "fullscreen: " + val.ToString());
    }
}

Changes

0.2.4

  • changed minimum runtime to .NET 4.7.2
  • fixed mpv.net not working with new mpv lib
  • the track name in the title bar was sometimes wrong
  • mpv lib updated to 2018-12-16
  • quit-watch-later added to context menu (Shift+Q) to exit and resume at the last position
  • ab loop added to menu
  • added the possibility to modify mpv.conf settings using the context menu
  • added link to the manual and default keys to the menu

0.2.2

  • history feature added
  • mpv lib updated

0.2.1

  • right-click in fullscreen in the right-left corner closes the app

mpvnet's People

Contributors

stax76 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.