Coder Social home page Coder Social logo

Feature Request: Option to run server in the background and open player only when somethings starts playing about simple-mpv-webui HOT 1 CLOSED

open-dynamix avatar open-dynamix commented on July 30, 2024
Feature Request: Option to run server in the background and open player only when somethings starts playing

from simple-mpv-webui.

Comments (1)

open-dynaMIX avatar open-dynaMIX commented on July 30, 2024 1

Hey @enchained

Thank you very much for your interest in this project and your ideas.

I was thinking about this in the past, also for solving different problems (see for example this comment).

My decision to not implement this still stands. My reasons for this are as follows:

  • Running as MPV user script provides the least necessary effort for users to make it run
  • It also takes on lots of the work the webui would have to do on its own as a stand-alone service
  • The installation documentation can be kept minimal this way, because the MPV documentation covers running of user scripts perfectly
  • I like doing some lua in this project, despite its obvious limitations. I'm working as a python/Django dev and this is a nice change from my usual environment (and quality expectations ;))

About the problems you want to solve, I see two possible work-arounds:

  1. Have MPV run at all times (--keep-open=yes)
  2. Write a small wrapper service that handles requests before forwarding them to the webui. This service could start MPV on demand.

Such service wrapper is outside of the scope of the webui project, but it could be developed independently as an additional tool. If this happens, I will be glad to give my support, but I don't have the time to implement it myself.

from simple-mpv-webui.

Related Issues (20)

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.