• Stars
    star
    135
  • Rank 269,297 (Top 6 %)
  • Language
    JavaScript
  • License
    GNU General Publi...
  • Created almost 11 years ago
  • Updated about 10 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Plays Local videos at your computer on your Chromecast

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:
# If you need to install FFMpeg on a mac
# libvo-aacenc is the default codec for streaming to the chromecast
$ brew install ffmpeg --with-libvo-aacenc

# 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 crash.

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.

More Repositories

1

gongular

A different approach to Go web frameworks
Go
502
star
2

terminal-webcam

a webcam that can be run on a bare terminal
Python
334
star
3

image-matcher

Image recognition implementation in Android, using OpenCV
Java
66
star
4

big-data-docker

Better, container friendly big-data images for Docker
Shell
39
star
5

docker-resource-reporter

Reports the resource usage of Docker containers to InfluxDB
Python
39
star
6

gopqgen

Generates the Go structs and getters/setters for PostgreSQL Database
Go
31
star
7

gonit

The init in go and other utilities
Go
29
star
8

wsftp

A NodeJS server and Chrome Extension client that allows file transfer on web sockets, using socket.io.
JavaScript
19
star
9

docker-resource-viewer

Find out the resource utilization of the containers in the system
JavaScript
17
star
10

templ8go

A small Go library to resolve templates with Javascript using V8
Go
10
star
11

bilkent-scheduler

New Scheduler from the original creator
Vue
9
star
12

express-session-store-benchmark

Benchmark for comparing in-memory, connect-redis and connect-mongo session stores.
JavaScript
8
star
13

go-drill

Go client for Apache Drill that utilizes REST API
Go
5
star
14

terminal-webcam-chat

Chat version of terminal-webcam
JavaScript
3
star
15

library-managament-system

A simple library management system built with NodeJS and uses MySQL
JavaScript
3
star
16

nodeplay

A web framework based on Express, like Play Framework, hot reloading
JavaScript
2
star
17

WebOM

Java Object Mapper for web
Java
2
star
18

tvdb-mongo-importer

JavaScript
2
star
19

Izuna

Java
2
star
20

robandroid-app

Java
2
star
21

robandroid-server

JavaScript
2
star
22

Flood-Buster

Prevents floods to happen.
Java
2
star
23

combination-ui

Bootstrap theme based on "Darkly Bootswatch theme" and "Combination UI" http://graphicburger.com/wp-content/uploads/2014/01/Combination-UI-Pack-600.jpg
CSS
1
star
24

cloudsim-test

cloud sim test
Java
1
star
25

myos

C
1
star
26

lambda-performance-test

Go
1
star
27

array-based-heap

It's an array based heap implementation, rather than traditional tree based.
C
1
star
28

Bilkent-STARS-SRS-Password-Remember---Google-Chrome-Extension

As you know Bilkent STARS:SRS system does not remember your password on Google Chrome. So, I made a solution to this. It remembers your last entered username & password and writes it automatically.
1
star
29

izuna-android

Java
1
star
30

buki

Easy VM Manager
Go
1
star
31

buki-libvirt

Wrapper around libvirt, better
Java
1
star
32

pagsfs

The pseudo file system that is behind PAGS
JavaScript
1
star
33

IGrid

Implementation of IGrid high dimensional indexing method
Java
1
star
34

multithread-download-client-server

A course project, leaving it for future reference
C
1
star
35

Facebook-News-Feed-Cleaner--Google-Chrome-Extension

Are you annoyed of people sharing same stuff over & over? And you do not want to block your friend or completely remove from the wall? Well, now that's over!
JavaScript
1
star