Coder Social home page Coder Social logo

reconbot / cast-localvideo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mustafaakin/cast-localvideo

0.0 2.0 0.0 802 KB

Plays Local videos at your computer on your Chromecast

License: GNU General Public License v2.0

JavaScript 99.39% CSS 0.61%

cast-localvideo's Introduction

cast-localvideo

Plays Local videos at your computer on your Chromecast. Beta for now.

Requirements

  1. A reachable Chromecast on your network, no client isolation in your router etc.
  2. Chrome Browser version 32 or later
  3. Cast extension in Chrome Store
  4. NodeJS v0.10+
  5. FFMpeg installed and reachable in PATH (Windows guide)
  6. A fast enough home interconnection network

Installation and Use

  • On a terminal, do the following:
// OR Use "Download ZIP" button.
$ git clone https://github.com/mustafaakin/cast-localvideo.git
$ cd cast-localvideo
$ npm install
$ node app

  • In Chrome, go to http://localhost:8000. You will see your folders (just change the folder to / on Linux & Mac). There is no root concept in Windows as in Unix, so if you wish to use another drive, just use D:

  • Navigate through your folders to locate a video.

  • Select the video and you will see the metadata if it is available in the file. (It currently shows all extensions, does not check if it is really a video file)

  • Click play local to test to see if it plays on Chrome. Note that it plays very fast after some seconds, because Chrome cannot detect its length. It may be a bug, see this Stackoverflow Question to help solving this.

  • Click the "Cast to Chromecast" button to play the video on your Chromecast. It will plays normally, at its normal speed.

  • Check the terminal to see if any errors were thrown. Sometimes FFmpeg can not handle the video and as a result it will crashe the application. Sorry.

Note

I developed this on Windows, on my parents computer remotely via TeamViewer. It is not feature complete, but it is easy to add features. Any pull requests and forks are welcome.

TODOs

  1. Be able to pause/resume content.
  2. Solve the duration bug.
  3. Make use of the session feature of the Cast API to remember what is playing even if the server is down.
  4. Package it as a nice application for end users.
  5. Embed subtitles via FFMpeg.
  6. Resize the videos if they are too big.
  7. Options to change encoding options.

Contact

Contact mustafa91 at gmail for any questions. My website is here.

cast-localvideo's People

Contributors

mustafaakin avatar edshaw avatar omeryl avatar mathur avatar

Watchers

Francis Gulotta 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.