Skip to main content
Participant
March 4, 2009
Question

Problem with Live Video Streaming

  • March 4, 2009
  • 1 reply
  • 2619 views
Hi, everybody,


I have a problem with live video streaming (accessing live stream from LAN or WAN) and I have the following configuration:

Computer (some older Gericom laptop):
Intel Celeron 1.7 GHz
RAM: 768 MB

Software:
- Windows XP SP2
- Adobe Flash Media Streaming Development Server 3.5
- Adobe Live Media Encoder 3.0

Camera: Sony Handy Cam DCR-HC35, connected through Firewire port


Encoder has these options set:

- Stream to Flash Media Server: checked

- FMS URL: rtmp://localhost/live

- Stream: livestream

- Save to File: unchecked


Inside server's webroot I have a page live.html and I'm using a sample flash video player supplied with the product (webroot/swfs/videoPlayer.swf).

HTML source of the page live.html is as follows:


<html>
<body>

<object width='640' height='377' id='videoPlayer' name='videoPlayer' type='application/x-shockwave-flash' classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' >
<param name='movie' value='swfs/videoPlayer.swf' />
<param name='quality' value='high' />
<param name='bgcolor' value='#000000' />
<param name='allowfullscreen' value='true' />
<param name='flashvars' value= '&videoWidth=0&videoHeight=0
&dsControl=manual&dsSensitivity=100
&serverURL=rtmp://localhost/live/livestream
&DS_Status=true&streamType=live&autoStart=true'/>
<embed src='swfs/videoPlayer.swf' width='640' height='377' id='videoPlayer' quality='high' bgcolor='#000000' name='videoPlayer' allowfullscreen='true'
pluginspage=' http://www.adobe.com/go/getflashplayer' flashvars='&videoWidth=0&videoHeight=0
&dsControl=manual&dsSensitivity=100
&serverURL=rtmp://localhost/live/livestream
&DS_Status=true&streamType=live&autoStart=true' type='application/x-shockwave-flash'>
</embed>

</object>

</body>
</html>


I have also copied all files from samples/applications/live (allowedHTMLdomains.txt, allowedSWFdomains.txt, Application.xml, main.asc, main.far) to applications/live as instructed in applications/live/readme.txt.

I can access http://localhost/live html and I can see the page ( http://localhost/live.html) with the embeded swf player and live stream playing.

But when I try to access this page from a computer within LAN or from WAN, all I can see is player, but no video stream is played (after attempting some time to play the stream, the player fails with a message that there was a connection error).

What surprises me most is that a stream from a file (e.g. vod/sample2_1000kbps.f4v) plays on any computer inside of LAN or even from the outside network, while a live stream cannot be accessed.
Am I missing something obvious here?

I'm sorry if that problem was already solved and I'm repeating some old already answered questions, but I really couldn't find any similar problem on the net.


Any help would be greatly appreciated, because this problem is torturing me for a quite few days now. :)


Best regards,

elektroljub
    This topic has been closed for replies.

    1 reply

    March 5, 2009
    Hi Elektroljub,
    In the SWF parameters supplies in your html; modify the server name as

    &serverURL=rtmp:/live/livestream

    [Above would cause Flash player to assume that the machine hosting the swf has the FMS also]
    OR

    &serverURL=rtmp://<hostname-or-IP address of the FMS machine>/live/livestream

    [Above will cause flash player to always contact the machine specified in the URL]


    I hope it helps.


    Participant
    March 5, 2009
    fmslove,

    thank you for your quick reply. I followed your instructions by trying your second solution, that is, to change serverURL parameter form "localhost" to my_ip_number - and the stream could be accessed instantly from any computer. :)

    Now it seems even logical to me, that some other computer can not understand what that "localhost" means. :)

    Thank you very much for your help, you've saved my day! :) I also hope that somebody in the future, who might have the same problems with live video streaming, will find this topic helpfull.


    Thank you again, best regards,

    elektroljub