Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
html5 video not working with node.js
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Yash Girdhar  
View profile  
 More options Nov 12 2012, 4:16 pm
From: Yash Girdhar <yash.gird...@gmail.com>
Date: Mon, 12 Nov 2012 13:16:09 -0800 (PST)
Local: Mon, Nov 12 2012 4:16 pm
Subject: html5 video not working with node.js

I am trying to play a video using html5 video tag in chrome. when I play
the video in a different file, containing just the video tag, the video is
playing.but when I embed the video in the html file of node server, it is
not.

The other functionalities of the node server are working as expected( I
have build an dynamic drawing board, and its working on the server).

what can be the reason behind this?

thank you


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Hahn  
View profile  
 More options Nov 12 2012, 4:33 pm
From: Mark Hahn <m...@hahnca.com>
Date: Mon, 12 Nov 2012 13:32:33 -0800
Local: Mon, Nov 12 2012 4:32 pm
Subject: Re: [nodejs] html5 video not working with node.js

> when I embed the video in the html file of node server

What do you mean by embed?  Surely you don't mean putting the video data in
an actual .html file.

On Mon, Nov 12, 2012 at 1:16 PM, Yash Girdhar <yash.gird...@gmail.com>
wrote:

> I am trying to play a video using html5 video tag in chrome. when I play

the video in a different file, containing just the video tag, the video is
playing.but when I embed the video in the html file of node server, it is
not.

> The other functionalities of the node server are working as expected( I

have build an dynamic drawing board, and its working on the server).

> what can be the reason behind this?

> thank you

> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:

https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Yash Girdhar  
View profile  
 More options Nov 12 2012, 4:45 pm
From: Yash Girdhar <yash.gird...@gmail.com>
Date: Mon, 12 Nov 2012 13:44:59 -0800 (PST)
Local: Mon, Nov 12 2012 4:44 pm
Subject: Re: [nodejs] html5 video not working with node.js

actually, I have made a simple real time drawing board in node.js, using
socket.io.Now, I want to embed real time video sync in the same file.
So, to start with I just added a video tag to the html file of the node.js
server(I am attaching both the files for your reference), to make sure that

at least I am able to play the video or not. nothing else changed in both
server and html files.But, the video is not playing.I am able to play the
video in the same file, by simply opening the html file in the browser or
in the Localhost, BUT not on the node server.
please help

  app.js
2K Download

  index.html
6K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nathan Rajlich  
View profile  
 More options Nov 12 2012, 5:32 pm
From: Nathan Rajlich <nat...@tootallnate.net>
Date: Mon, 12 Nov 2012 14:32:06 -0800
Local: Mon, Nov 12 2012 5:32 pm
Subject: Re: [nodejs] html5 video not working with node.js
Are you implementing the static file serving yourself? You're likely
not supporting the Range header and 206 partial responses, which HTML5
<video> tags expect to work properly. I'd recommend using connect's
static() middleware.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ryan Schmidt  
View profile  
 More options Nov 12 2012, 6:57 pm
From: Ryan Schmidt <google-2...@ryandesign.com>
Date: Mon, 12 Nov 2012 17:56:13 -0600
Local: Mon, Nov 12 2012 6:56 pm
Subject: Re: [nodejs] html5 video not working with node.js

On Nov 12, 2012, at 16:32, Nathan Rajlich <nat...@tootallnate.net> wrote:

> Are you implementing the static file serving yourself?

The only route defined in app.js is:

app.get('/', function (req, res) {
  res.sendfile(__dirname + '/index.html');

});

Therefore "/" is the only route that will be served. If you also want to serve "/test.mp4", then you will need to define a route for that, or hook up some static middleware as Nate said.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Yash Girdhar  
View profile  
 More options Nov 13 2012, 5:00 am
From: Yash Girdhar <yash.gird...@gmail.com>
Date: Tue, 13 Nov 2012 02:00:53 -0800 (PST)
Local: Tues, Nov 13 2012 5:00 am
Subject: Re: [nodejs] html5 video not working with node.js

So, how can I serve the video in the same way as I am serving the file,
i.e. defining a route for that.
right now, I am just giving the path of the video in the src attribute of
video tag


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Hahn  
View profile  
 More options Nov 13 2012, 11:11 am
From: Mark Hahn <m...@hahnca.com>
Date: Tue, 13 Nov 2012 08:10:42 -0800
Local: Tues, Nov 13 2012 11:10 am
Subject: Re: [nodejs] html5 video not working with node.js

BTW, serving files through node is slow and inefficient.  I would never
think to send big video files through the V8 engine.  Use nginx on the
front end, or another of several good options.

On Tue, Nov 13, 2012 at 2:00 AM, Yash Girdhar <yash.gird...@gmail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nathan Rajlich  
View profile  
 More options Nov 13 2012, 11:48 am
From: Nathan Rajlich <nat...@tootallnate.net>
Date: Tue, 13 Nov 2012 08:48:02 -0800
Local: Tues, Nov 13 2012 11:48 am
Subject: Re: [nodejs] html5 video not working with node.js
Seeing as though you're literally just serving regular files here, you
should really just use the .static() middleware. See:
https://github.com/visionmedia/express/blob/master/examples/static-fi...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Yash Girdhar  
View profile  
 More options Nov 14 2012, 11:40 am
From: Yash Girdhar <yash.gird...@gmail.com>
Date: Wed, 14 Nov 2012 08:40:21 -0800 (PST)
Local: Wed, Nov 14 2012 11:40 am
Subject: Re: [nodejs] html5 video not working with node.js

problem solved with ".static" :D
thanks a lot


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »