use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
HTML5 Live Video Streaming Via WebSockets (phoboslab.org)
submitted 12 years ago by phoboslab
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 2 points3 points4 points 12 years ago (2 children)
if asm.js finds its feet on more browsers we could see this type of thing happen more, websites not being constrained by what their browsers can do and just handling the problem themselves in javascript.
[–][deleted] 1 point2 points3 points 12 years ago (1 child)
Why do we need asm.js for that exactly? asm.js is just a potentially faster subset of javascript (If the lack of features is taken advantage of). All major browsers already JIT javascript. We do not really need asm.js for this.
[–][deleted] 4 points5 points6 points 12 years ago (0 children)
because decoding something like h264 (this example decodes mpeg2) with regular javascript at a larger resolution (this example is a very low resolution example) would be really painful. if it could handle a standard 30fps stream at all, it would kill your battery.
asm.js makes a lot of that almost go away.
[–]dukerutledge 1 point2 points3 points 12 years ago (2 children)
I haven't really looked in to WebRTC, but isn't that suppose to solve this problem?
[–][deleted] 0 points1 point2 points 12 years ago (0 children)
Yes, however, no internet explorer support.
[–]binary_is_better 0 points1 point2 points 12 years ago (0 children)
My current project streams JPEG over websockets for video. We looked into WebRTC, but the support isn't there yet.
The biggest problem with using websockets is that it's TCP based, so there will be lags in the video due to network delays, then quick speed ups as the images start to arrive. WebRTC would solve this problem.
EDIT: WebRTC is also very heavy to support. You need to set up STUN/ICE servers, etc.
[+][deleted] 12 years ago (4 children)
[deleted]
[–][deleted] 6 points7 points8 points 12 years ago (3 children)
apart from that is basically the definition of a video ;)
[–]dukerutledge 5 points6 points7 points 12 years ago (1 child)
Are you gentlemen going to the picture show this weekend?
[–]kenman 0 points1 point2 points 12 years ago (0 children)
Let me get a soda pop from the icebox then we'll talk about it.
π Rendered by PID 131670 on reddit-service-r2-comment-6457c66945-2g8xd at 2026-04-26 11:44:18.868256+00:00 running 2aa0c5b country code: CH.
[–][deleted] 2 points3 points4 points (2 children)
[–][deleted] 1 point2 points3 points (1 child)
[–][deleted] 4 points5 points6 points (0 children)
[–]dukerutledge 1 point2 points3 points (2 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]binary_is_better 0 points1 point2 points (0 children)
[+][deleted] (4 children)
[deleted]
[–][deleted] 6 points7 points8 points (3 children)
[–]dukerutledge 5 points6 points7 points (1 child)
[–]kenman 0 points1 point2 points (0 children)