Skip to main content
Participant
August 10, 2006
Question

Flash Streaming

  • August 10, 2006
  • 4 replies
  • 1357 views
I have this problem in flash. I have a flash communication server installed and i want to stream a video using the webcam. This is my code which i saw in the flash communication server tutorial.

function playCam1()
{
gotoAndStop(1);

// Attach the video device output from 'client_cam'
// to the 'Live_Video' video clip
cam1 = Camera.get(0);
Live_Video_1.attachVideo(cam1);
function Stream_1()
{
// Make a connection to the application on the server
client_nc = new NetConnection();

// Handle status message
client_nc.onStatus = function(info) {
trace("Level: " + info.level + newline + "Code: " + info.code);
}
// client_nc.connect("rtmp://localhost/OSC/room_01");
client_nc.connect("rtmp:\\192.168.232.26\room_01");

// Create output stream
out_ns = new NetStream(client_nc);

// Create input stream
in_ns = new NetStream(client_nc);
Replay_video.attachVideo(in_ns);
}
// Connect to server and set up streams
Streams_1();
}

I plaved the ip address of the server but its not working what will i do! Is the ip address i placed correct. The server is wifi connected. Can anyone please help me with my problem. I need answers fast.
    This topic has been closed for replies.

    4 replies

    calmchessplayer
    Inspiring
    September 6, 2009

    Hi guys 80 is the port for your webserver which needs opened fms will only use this port as a last resort when connecting rtmp.....port 1935 is the port you need to open on the firewall along with port 80...your rtmp string should look like....rtmp://myIP/app/instance

    Participant
    September 6, 2009

    if the firewall is causing this problem, why don't you select a port and secure your stream. I guess that port 80 is default for streaming.


    You can try changing your script with xxx.xxx.xxx.xxx:80

    Inspiring
    August 18, 2006
    I think it's the firewall. Just turn off the firewall, try your application again.
    Of course, firewall helps security issues and you would not want to turn it off when you publish your application on the web. This article will help:

    http://www.adobe.com/devnet/flashcom/articles/firewall_streaming_print.html
    Inspiring
    August 11, 2006
    I think we have a similar problem. A similar code posted in a tutorial i found on this site only works in localhost but won't work with remote client browsers. Please if someone knows a solution to this problem, we would really appreciate that help. Thanks.