red5 to embed in HTML page

Discussion in 'Server Operation' started by vtapas, Jul 28, 2010.

  1. vtapas

    vtapas New Member

    I have asked this question on Red5 support forums.The forums is not a very active one.

    So I am putting it here.
    I have CentOS 5.5 and Red5 running on it.
    I access the streaming flv as

    http://192.168.1.5:5080/demos/ofla_demo.html

    which is nothing but via oflaDemo application where I get to see my all files.
    I kept my flv files in
    Code:
    /opt/red5/dist/webapps/oflaDemo/streams
    and I was able to see the flv videos.
    Generated.


    I checked http://www.longtailvideo.com/suppor...gestions/6054/embedding-flash-player-for-red5
    and some other tutorials but could not reach the right way to do so.
    What I am trying to achieve is on my Laptop in an html page I want to see the video which is hosted on Red5.

    The problem in this case is if the HTML code is like this
    Code:
    <script type='text/javascript' src='swfobject.js'></script>
    
    <div id='mediaspace'>This text will be replaced</div>
    
    <script type='text/javascript'>
      var so = new SWFObject('player.swf','ply','470','320','9','#000000');
      so.addParam('allowfullscreen','true');
      so.addParam('allowscriptaccess','always');
      so.addParam('wmode','opaque');
      so.addVariable('file','avatar.flv');
      so.addVariable('streamer','rtmp://192.168.1.5/oflaDemo&id=avatar.flv');
      so.write('mediaspace');
    </script>
    
    This does not work.I have tried using JWplayer for this purpose.
    I have checked following links
    https://www.gigapros.com/support/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=195
    and

    http://builddocs.com/server_os_builds/streaming-video-with-red5-oflademo-app/
    but none of them worked.

    So any guesses.
     

Share This Page