Skip to content

Instantly share code, notes, and snippets.

@Dudemullet
Created May 11, 2014 21:57
Show Gist options
  • Save Dudemullet/8cd6bf5a098282c595d0 to your computer and use it in GitHub Desktop.
Save Dudemullet/8cd6bf5a098282c595d0 to your computer and use it in GitHub Desktop.
Server simple video stream
<!doctype html>
<!--[if lt IE 7]> <html class="lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!-->
<html> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
</head>
<body>
<video controls="true" src="<videoinAppFolder.mp4>"></video>
</body>
</html>
var express = require('express'),
app = express();
app.use(express.static("./app"));
app.get("/", function(req, res, next) {
res.sendfile("index.html")
});
app.listen(8080);
console.log("Server started in http://localhost:" + 8080);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment