Created
May 11, 2014 21:57
-
-
Save Dudemullet/8cd6bf5a098282c595d0 to your computer and use it in GitHub Desktop.
Server simple video stream
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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