Click here to Skip to main content
Click here to Skip to main content

Tagged as

How to embed streaming Video (rtmp protocol) in HTML

, 13 Oct 2013 CPOL
Rate this:
Please Sign up or sign in to vote.
If you are looking to play a live streaming video (flv) file through an rtmp server, then you have come to the right place
<script type='text/javascript' src='swfobject.js'></script>
<div id='mediaspace'>Playing FLV</div>
<object width="400" height="409" codebase=",0,0,0">
  <param name="allowscriptaccess" value="always"></param>
  <param name="file" value="cocaine">  
  <embed height="500" width="650" flashvars="file=cocaine&amp;streamer=rtmp://;rtmp.subscribe=true&amp;quality=best&amp;controlbar=bottom&amp;rtmp.tunneling=false&amp;frontcolor=#fff&amp;backcolor=#000&amp;stretching=exactfit&amp;autostart=true" wmode="transparent" allowfullscreen="true" allowscriptaccess="always" quality="high" src="" type="application/x-shockwave-flash"/> 

 The above code is usually works pretty well to easily en-corporate a streaming live video in an HTML page.

Just change the values of the streamer and file and you are ready to go!




This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Mukit, Ataul
Chief Technology Officer Rational Technologies
Bangladesh Bangladesh
C++ is not C with classes, JQuery is not Javascript, Google Search is not Learning, Design Patterns are not fashion, A code written in 2005 is not backdated just because it's 2015
Follow on   Twitter

Comments and Discussions

-- There are no messages in this forum --
| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.150123.1 | Last Updated 13 Oct 2013
Article Copyright 2013 by Mukit, Ataul
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid