| Vivek Lakhanpal (Office) 2005-09-27, 5:45 pm |
| I think FlashComm listen to change in Camera and Mic automatically you don't
have to do it through code.
In any case if you want that user can select from multiple input options
(video/audio) and your application should update accordingly. Instead of
letting him choose from Settings tab and doing it through Camera.get() and
Microphone.get() which is system intensive as it search all your hardwares.
Design your panel which has listing of all cameras(e.g.
cameras_cb.setDataProvider(Camera.names); cameras_cb is combo box) and
microphones (e.g. microphone_cb.setDataProvider(Microphone.names);
microphone_cb is combo box), where he can change his camera input and your
application can be updated accordingly on change in the listing.
Thanks,
Vivek.
----------------------------------------------------------------------
Message: 1
Date: Sun, 25 Sep 2005 19:28:41 +0200
From: lti-1a8g-LMbKfuCQv7pBDgjK7y7TUQ@public.gmane.org
Subject: [FlashComm] "Listening" to Camera change in
System.showSettings ?
To: FlashComm Mailing List <flashcomm-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org>
Message-ID: <4336DE49.3010500-LMbKfuCQv7pBDgjK7y7TUQ@public.gmane.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Hi,
I'm wondering, as it seems to have been already done in the FCS samples,
how to "listen" for a user Camera change from the settings panel ?
Would a setInterval on a basic function like this would work correctly ?
-----------------------------------------------------
function detectCamMicChanges() {
var selected_cam = Camera.get();
var selected_mic = Microphone.get();
if (selected_cam != global_current_cam) { ... notify the clip which
publish the stream ... }
if (selected_mic != global_current_mic) { ... notify the clip which
publish the stream ...}
}
------------------------------------------------------
Thanks
------------------------------
=-----------------------------------------------------------
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
|