|
Home > Archive > Macromedia Flash Server > September 2005 > "Listening" to Camera change in System.showSettings ?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
"Listening" to Camera change in System.showSettings ?
|
|
| lti-1a8g-LMbKfuCQv7pBDgjK7y7TUQ@public.gmane.o 2005-09-25, 5:45 pm |
| 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
| |
| Maulik Kataria 2005-09-26, 2:45 am |
| woooa you want to call this method in setInterval ? Camera.get() method
tries to look for the available camera so that might include system level
code within flash... so that is not a good code to write I think...
On 9/25/05, lti-1a8g-LMbKfuCQv7pBDgjK7y7TUQ@public.gmane.org <lti-1a8g-LMbKfuCQv7pBDgjK7y7TUQ@public.gmane.org> wrote:
>
> 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 =3D Camera.get();
> var selected_mic =3D Microphone.get();
> if (selected_cam !=3D global_current_cam) { ... notify the clip which
> publish the stream ... }
> if (selected_mic !=3D global_current_mic) { ... notify the clip which
> publish the stream ...}
> }
> ------------------------------------------------------
>
> Thanks
>
> =3D-----------------------------------------------------------
> Supported by Fig Leaf Software - http://www.figleaf.com
> =3D-----------------------------------------------------------
>
> 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
|
|
|
|
|