Re: Sample code with instructions for steaming
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Macromedia Flash Server > Re: Sample code with instructions for steaming




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Re: Sample code with instructions for steaming  
Jake Hilton


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-07-05 10:45 PM

Bill,
To test whether the video driver works you could implement this code:

var my_video:Video; //my_video is a Video object on the Stage
var active_cam:Camera = Camera.get();
my_video.attachVideo(active_cam);

You have to make sure you have a video object on the stage with the
instance name of my_video. In order to do this if you don't know... In
the title bar of your library on the very right there is a menu button.
If you click that you can create a new video object in your library.
Once created drag that to your stage. Select it and in your properties
panel in the instance name input field put the name my_video. The above
code will find the first camera attached to your computer.. in this case
if the TechSmith Driver is the only video input device then it will
select that and display the output of that in the video object that you
placed on your stage. So test your movie and viola. It should work. To
hook this up to a flash com server you could do the following:

var my_video:Video; //my_video is a Video object on the Stage
var active_cam:Camera = Camera.get();
my_video.attachVideo(active_cam);

var my_nc:NetConnection = new NetConnection();
my_nc.connect("rtmp://myServer.myDomain.com/appName/appInstance");
var src_ns:NetStream = new NetStream(my_nc);
src_ns.publish("stephen", "record");
src_ns.attachVideo(active_cam);

// To stop publishing and recording
src_ns.publish(false);

// To play the recorded stream
src_ns.play("stephen");

Hope that helps.

Jake
[vbcol=seagreen] 
Does anyone have some sample code with instructions for streaming
local
video through FCS? I am looking for something along the lines of
"Streaming
video through FCS for dummies"  I am NO flash pogrammer and I do not
want
to pull one of my programmers off of current projeccts for a simple
test. I
have looked through the
http://www.flashcomguru.com/tutorials/camtasia.cfm
samle but it does not show me the FCS setup. Soimething with sample
code
where I can just change the FCS address wouyld be great!
I will be using the TechSmith OEM Screen Video Capture Driver v1.0.0
beta 1
for the local capture if it makes a difference.

Thank you
Bill Hoover

=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 08:20 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register