Solved

streaming real time web cam with flash media server

Posted on 2007-04-01
3
248 Views
Last Modified: 2008-02-01
Hi,

I am trying to stream my web cam with Flash Media serer and I am having some problems getting it to work.

First of all I have this code in a swf on the web that shows my own web cam in real time.

client_nc = new NetConnection();
client_nc.connect("rtmp://rtmphost.com/testStream/main.asc");

mycam = Camera.get();
mycam.setMode(160,120,15);
mycam.setQuality(20000,0);
my_video.attachVideo(mycam);

output = new NetStream(client_nc);
output.attachVideo(mycam);
output.publish("livevideofile", "live");

in_ns = new NetStream(client_nc);
in_ns.receiveVideo();
in_ns.play("livevideofile");
Replay_video.attachVideo(in_ns);
stop();

The above code works fine but I do not understand how I am supposed to send this siganal to the flash media server and then view it from another computer. I may allreeady be sending the singnal tio the server but how do I view it from another swf?

Thanks,

waffe

Even some good links to tutorials would probably do the trick...
0
Comment
Question by:waffe
  • 2
3 Comments
 
LVL 34

Accepted Solution

by:
Aneesh Chopra earned 150 total points
ID: 18834283
other swf need only following code to playback reatime video:

---------------------------------------
client_nc = new NetConnection();
client_nc.connect("rtmp://rtmphost.com/testStream/main.asc");

in_ns = new NetStream(client_nc);
in_ns.receiveVideo();
in_ns.play("livevideofile");
Replay_video.attachVideo(in_ns);
stop();

--------------------------------------

- Aneesh Chopra
0
 

Author Comment

by:waffe
ID: 18834426
ok great - but I don't see anything yet. Do I need a video playback component on the stage?
0
 

Author Comment

by:waffe
ID: 18834751
well none of that code above works - so for the next guy use this link

http://www.influxis.com/flashcom_mboard/topic.asp?TOPIC_ID=163

waffe
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question