title: How to embed an RTMP stream on a website?
body: <p>I need to embed an rtmp stream that i'm hosting on my computer with nginx. I searched thoroughly but have not found a working solution, and i'm a little bit confused with livestream.flv and it's purpose.</p>
  
  <p>I tried this:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;script src="swfobject.js"&gt;&lt;/script&gt;
  &lt;title&gt;Stream&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;div id="mediaspace"&gt;This text will be replaced&lt;/div&gt;
  
  &lt;script&gt;
      var so = new SWFObject('player.swf','mpl','470','290','9');
      so.addParam('allowfullscreen','true');
      so.addParam('allowscriptaccess','always');
      so.addParam('wmode','opaque');
      so.addVariable('file','livestream.flv');
      so.addVariable('autostart','true');
      so.addVariable('streamer','rtmp://192.168.1.151:1935/live');
      so.write('mediaspace');
  &lt;/script&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>with no luck. "This text will be replaced" never got replaced.
  Does anyone have a solution?</p>