Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

streaming real time web cam with flash media server

Posted on 2007-04-01
3
Medium Priority
?
255 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 34

Accepted Solution

by:
Aneesh Chopra earned 300 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
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 record live broadcast.

688 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