Groups | Blog | Home
all groups > macromedia flash flashcom > august 2006 >

macromedia flash flashcom : Flash Streaming



dhaos
8/10/2006 12:00:00 AM
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.
dongzky
8/11/2006 1:26:29 AM
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.
dongzky
8/18/2006 12:00:00 AM
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
AddThis Social Bookmark Button