I hereby claim:
- I am bugb on github.
- I am chaugiang (https://keybase.io/chaugiang) on keybase.
- I have a public key ASCVt4o9PSa_aaPUFv4ke4ZfOTKGaXp6HhrZ7qJHOeg02wo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Provided that you already have a file or stream segmenter generating your .m3u8 playlist and .ts segment files (such as the ffmpeg 'hls' muxer), this little node server will serve up those files to an HLS compatible client (e.g. Safari). If you're using node for your streaming app already, this obviates the need to serve the HLS stream from a separate web server.
loosely based on https://gist.github.com/bnerd/2011232
// loosely based on https://gist.github.com/bnerd/2011232
// requires node.js >= v0.10.0
// assumes that HLS segmenter filename base is 'out'
// and that the HLS playlist and .ts files are in the current directory| var http = require('http') | |
| var fs = require('fs') | |
| var argv = require('optimist').argv | |
| var rxVideoID = /v=([\]\[!"#$%'()*+,.\/:;<=>?@\^_`{|}~-\w]*)/ | |
| var link = argv._.toString() | |
| var videoID = link.match(rxVideoID)[1] | |
| http.get("http://www.youtube.com/get_video_info?video_id="+videoID, function(res) { | |
| var chunks = [] |
Mongo DB works with raw TCP instead of HTTP so we need create stream with Nginx.
Add the below code above http block in nginx config file (eg: /etc/nginx/nginx.conf for Ubuntu)
stream {
server {
listen 9999;
proxy_connect_timeout 1s;
proxy_timeout 3s;
I hereby claim:
To claim this, I am signing this object:
FWIW: I didn't produce the content presented here (the outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.
| General Nanodegree Information | |
| Nanodegrees Programs: https://www.udacity.com/nanodegree | |
| Nanodegree Plus (job guarantee): https://www.udacity.com/nanodegree/plus | |
| UConnect (weekly in-person study sessions): https://www.udacity.com/uconnect | |
| Courses on Udacity | |
| Machine Learning Engineer Nanodegree by Google (Currently Available): https://www.udacity.com/course/machine-learning-engineer-nanodegree-by-google--nd009 | |
| Artificial Intelligence for Robots (Free Course) https://www.udacity.com/course/artificial-intelligence-for-robotics--cs373 | |
| Intro to Statistics (Free Course) https://www.udacity.com/course/intro-to-statistics--st101 | |
| Deep Learning (Free Course) https://www.udacity.com/course/deep-learning--ud730 |
When hosting our web applications, we often have one public IP
address (i.e., an IP address visible to the outside world)
using which we want to host multiple web apps. For example, one
may wants to host three different web apps respectively for
example1.com, example2.com, and example1.com/images on
the same machine using a single IP address.
How can we do that? Well, the good news is Internet browsers