- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
hi there, is there a way to programatically change the microphone being used by the audioPublisher?
i mean the audioPublisher has the selectedMic property which according to your API is read-write
| selectedMic | property |
selectedMic:Microphone [read-write]
Returns the currently selected microphone.
Implementation
public function get selectedMic():Microphone
public function set selectedMic(value:Microphone):void
but the problem is how can i select a mic in flash (programatically), if i need to pass a Microphone object to the selectedMic property, then that means that i have to do somthing like Microphone.getIndex(something), but then again how can i know the index of each microphone?
Actually i have even tried changing the selected microphone in the flash settings but whenever i get audioPublisher.selectedMic.name, its always "USB Audio Device" so it really doesn't seem to change or i'm just not getting it or doesn't know how to get it.
i'm really relatively new to flash and it also seems that there is no real way to list and select the active mic, i mean you can list it down using the Microphone.names array list, but how can i get their corresponding index? is it just zero-based then just increment by one for each item in the microphone.names array?
Views
Replies
Total Likes