Livestreaming with javascript

18

I am developing a Livestreaming project and would like to know if it is possible to do this using websockets , javascript and html5 video capture where you would have a webpage which would capture the webcam video (with html5 video capture ) and another where it would have a player that would pass the captured video in real time.

Would anyone have any reference on or know of any way to do this?

    
asked by anonymous 17.06.2015 / 16:36

1 answer

1

You can use the webRTC technology that is present in the Chrome 18+ version. But you need to enter about: // flags and enable 'getUserMedia ()' or MediaStream. Use control F to find it easily.

Here's a code I found in github that tested and worked:

<script type="text/javascript" src="//cdn.oslikas.com/js/WebRTCO-1.0.4-beta-min.js" charset="utf-8"></script> 

...

<div class="row">
        <div class="span2"></div>
        <div class="span4" id="div_video_local">
            <video width="100%" height="100%" autoplay="autoplay" id="localVideo" muted="true"/>
        </div>
        <div class="span4" id="div_video_remote">
            <video width="100%" height="100%" autoplay="autoplay" id="remoteVideo1"/>
        </div>
        <div class="span2"></div>
    </div>

I put this answer because I believe that nobody will bring something really functional (free) for a long time. There are many projects in github, but many are stopped or with bugs. Some were free and became paid. But it's a cool test to do, but for business it's still not a good one.

File links: link

Test link: link or link

    
26.06.2015 / 07:27