Created
April 8, 2011 04:45
-
-
Save silentrob/909307 to your computer and use it in GitHub Desktop.
Connect Stream mp4 Example
This file contains hidden or 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
require('connect').createServer( | |
connect.static(__dirname + '/videos', { maxAge: 0 }), | |
function(req, res) { | |
res.setHeader('Content-Type', 'text/html'); | |
res.end('<video width="300px" src="/OLD_BOY.mp4" controls="controls" autoplay="autoplay"></video>'); | |
} | |
).listen(process.env.PORT || 4000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment