Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 03-15-2005, 01:51 PM   #1
Registered User
Join Date: Mar 2005
Posts: 2
Default Two quality streams from same webcam


Ive built a very simple flash app to publish a live webcam stream onto FCS. I then have a viewer program to show the feed on a website. Im trying to give the viewer the option of chosing the quality of the stream (for high and low speed connections).

I am trying to do this by publishing two streams on the server - the viewer then choese the stream based on the choice of the user.

My code:

//High quality stream
office_cam = camera.get();

office_cam.setMode(320, 240, 15);
office_cam.setQuality(144000, 90);


//low quality stream
office_camlow = camera.get();

office_camlow.setMode(320, 240, 7);
office_camlow.setQuality(67200, 50);


function doConnect() {
nc = new NetConnection();
function publishMe() {
out_ns = new NetStream(nc);

outlow_ns = new NetStream(nc);


Problem i have is both streams revert to the low quality settings - im i correct in thinking that i cant publish two different quality streams from the same camera?

Any advice or help on this would be greatly appriceated.

Many thanks,

Egglar is offline   Reply With Quote
Old 03-26-2005, 07:48 PM   #2
Senior Member
Join Date: Oct 2003
Location: north carolina
Posts: 472

Egglar, I believe that you cannot have multiple streams of different qualities from the same camera; WHY - because the settings are camera settings, not stream settings;

1 - if you are streaming live video (as in video conference) the other user (the viewer) could have a set of 'camera publish controls' - essentially a set of variables and a button that when pressed send the variables to the publishing camera and thus the viewer controls the settings for the publishing camera;

2- if you are recording a video then just make multiple records with the different settings; though this is clearly not a good way of going about it it seems to be the only way unless you have an audio mixing board;

Shannon Burnett
Asheville NC USA
dsdsdsdsd is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

All times are GMT. The time now is 11:40 AM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.