title: Record video from HTML using NGINX and RTMP protocol
body: <p>I would like to build up an application web with Streaming. I have been using HTML5 and PHP.</p>
  
  <p>For other project, I have been using NGINX server, so I use <code>Open Broadcaster Software</code> to encode and to transmit my stream to NGINX server, so later I show it with a javascript and Flash in a html page. I have been using RTMP protocol with the direction of my server and so on...</p>
  
  <p>So my problem is that I want to record video on a HTML5 page instead of using <code>Open Broadcaster Software</code>. In that way I can record it from HTML5, and watch it in another HTML5 page (using NGINX and RTMP)</p>
  
  <p>Thanks so much!</p>
  
  <pre><code>&lt;!DOCTYPE HTML&gt; 
  &lt;html&gt;
  &lt;head&gt;
      &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"/&gt;
      &lt;title&gt;Live Stream&lt;/title&gt;
      &lt;link rel="stylesheet" href="css/normalize.css" type="text/css" media="screen"&gt;
      &lt;link rel="stylesheet" href="css/grid.css" type="text/css" media="screen"&gt;
      &lt;link href='http://fonts.googleapis.com/css?family=Nunito' rel='stylesheet' type='text/css'&gt;
      &lt;link rel="stylesheet" href="css/style.css" type="text/css" media="screen"&gt;
  
  &lt;h1 align="center"&gt;Live Stream&lt;/h1&gt; 
  
  &lt;/head&gt;
  &lt;body&gt;
  
    &lt;div class="container clearfix"&gt;
  &lt;script type="text/javascript" src='jwplayer.js'&gt;&lt;/script&gt;
      &lt;div id='player_1'&gt;&lt;/div&gt;
  &lt;script type='text/javascript'&gt;
    jwplayer('player_1').setup({
      width: "100%",
      height: "100%",
      stretching: "fill",
      primary: "flash",
      autostart: "true",
      sources:
   [
   {file: "rtmp://server:port/live/test"}
   ]
    });
  &lt;/script&gt;
  &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>This is the way i recieve the streaming. I want the same way to capture and send it to a server.</p>
  
  <p>So i want capture video and sound with HTML5 and create a FMS URL and to set a stream key in order to send it to NGINX. But i dont know if its possible to do that...</p>
  
  <p>Thanks :)</p>