Git Product home page Git Product logo

local-streamer's Introduction

Introduction

A desktop application to manage your local video streaming.

Features

  1. Browse to find the video you want to play.
  2. The video you play will be added to recents list.
  3. Mark the video as watched in your recents list.
  4. Play a random video from a folder.

Screenshots

Home

Settings

Usage

Requirements

  1. Install Node.js.
  2. Run npm install in the root directory to install dependencies.

Set up .env

Make a .env file in root directory. An example configuration:

MODE=debug
DEBUG_URL=http://localhost:3000/
DEBUG_DATA_PATH=path\to\data\directory

MODE can be-

  1. debug: Render contents from URL location specified by DEBUG_URL. This allows fast debugging otherwise we would have to build the React app everytime. One can separately serve a react app on the localhost which supports auto reload whenever files change.
  2. production: Render contents from react build output.

DEBUG_DATA_PATH represents the directory where app data will be saved while in debugging mode so that you can use the application and develop simultaneously while keeping the data separated.

Launch app in debug mode

  1. Configure .env for debug as described in the previous section.
  2. Use command npm run react-start to run react dev server and host the react app.
  3. Use command npm run electron-start to launch the app which loads the URL on which the react app is hosted.

Build and use app

  1. Use command npm run electron-pack to build the react app and package the electron app.
  2. The build output is stored in dist directory.
  3. Install the app using the installer.
  4. Enjoy local streaming :)

Why I made this?

  1. For fun.
  2. Recents list is convenient, it allows me to track what I have watched.
  3. I can easily click the next button on a recent to play the next video in the same folder.
  4. Learning how to implement a desktop app using Electron and React while following best practices as much as possible.

Open to suggestions :)

local-streamer's People

Contributors

dependabot[bot] avatar nitronr avatar

Stargazers

 avatar

Watchers

 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.