Results 1 to 4 of 4

Thread: Example livestream file works - mine doesn't - how to pass flv values to browser?

  1. #1

    Default Example livestream file works - mine doesn't - how to pass flv values to browser?

    Hi all-

    I have tested a live stream using the demo 10-connection version and the client/live.html example provided.

    In a real-world test I would like to use the JW player and pass the values so that the end-user does not have to enter the rtmp server and the stream name.

    The code I am using is:

    <script type="text/javascript" src="swfobject.js"></script>

    <div id="player">Test Flash server</div>

    <script type="text/javascript">
    var so = new SWFObject('player.swf','mpl','470','290','9');
    so.addParam('allowscriptaccess','always');
    so.addParam('allowfullscreen','true');
    so.addParam('flashvars','&streamer=rtmp://[ipaddress]/livevideo&autostart=true');
    so.write('player');
    </script>

    I have also tried rtmp://[ipaddress]/livevideo/myStream

    but neither work.

    Any suggestions?

    Thanks in advance.

  2. #2

    Default

    Look at this forum post:

    http://www.wowzamedia.com/forums/showthread.php?t=182

    I believe it should be:

    Code:
    <script type="text/javascript" src="swfobject.js"></script>
    
    <div id="player">Test Flash server</div>
    
    <script type="text/javascript">
    var so = new SWFObject('player.swf','mpl','470','290','9');
    so.addParam('allowscriptaccess','always');
    so.addParam('allowfullscreen','true');
    so.addParam('flashvars','&streamer=rtmp://[ipaddress]/livevideo&file=myStream&autostart=true');
    so.write('player');
    </script>
    Charlie

  3. #3

    Default 2032 error?

    Hi Charlie -

    Thanks for the suggestion - I get an error in the flash browser screen:
    404: Error#2032

  4. #4

    Default

    UPDATE: I think I fixed it!

    The change was on Jeroen's site:
    add: so.addParam('type', 'video');

    <script type="text/javascript" src="swfobject.js"></script>

    <div id="player">Test Flash server - 2</div>

    <script type="text/javascript">
    var so = new SWFObject('player.swf','mpl','470','290','9');
    so.addParam('allowscriptaccess','always');
    so.addParam('allowfullscreen','true');
    so.addParam('type', 'video');
    so.addParam('flashvars','&streamer=rtmp://[ipaddress]/livevideo&file=myStream.flv&autostart=true');
    so.write('player');
    </script>

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •