<video id="vidid" class="video-js vjs-default-skin" controls autoplay="none" preload="auto" width="600" height="400"> <source src="path/to/video" type="video/mp4"> </video>
--
Job board: http://jobs.nodejs.org/
New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+un...@googlegroups.com.
To post to this group, send email to nod...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/CAGXCHEmFmJS_-WoEHjFuJo-%2BjHY94WP5vgJ4197ekrc7wU%2B0DQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/EEA59255-A383-4FC9-94AC-D38C735A97A9%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/E9075FAF-EC38-41CC-9B0F-34352E81AC70%40gmail.com.
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);
<!doctype html><html><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>
Note that for the path of the video, I declared the public folder as where all static assets should be served from. Then I created a videos folder under public and put the file in there. I also made sure I called the play function on the video in my script.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/931D3E3C-499B-4973-88BE-C7A0CBF0FB67%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/69991505-2410-456a-a908-d86850ea476c%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/69991505-2410-456a-a908-d86850ea476c%40googlegroups.com.