Question
Flash Streaming
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.
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.
