Posted By

daipratt on 09/03/10


Tagged

swfObject player stream live rtmp jw


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

chipper1522


Embed a RTMP live stream with SWFObject v2.2 using JW Player


 / Published in: JavaScript
 

URL: http://daipratt.co.uk

  1. <div id="Player">player should load here</div>
  2. <script language="javascript" type="text/javascript">
  3. var flashvars = {
  4. 'file':'plainFileNameWithNoExtension',
  5. 'streamer':'rtmp://blah/blah',
  6. 'type':'rtmp',
  7. 'rtmp.subscribe':'true',
  8. 'autostart':'true'
  9. };
  10. var params = {
  11. 'allowfullscreen':'true',
  12. 'allowscriptaccess':'always',
  13. 'bgcolor':'#19010F'
  14. };
  15. var attributes = {
  16. 'id':'Player',
  17. 'name':'Player'
  18. };
  19. swfobject.embedSWF('player.swf', 'Player', '640', '480', '9', 'false', flashvars, params, attributes);
  20. </script>

Report this snippet  

You need to login to post a comment.