songz / cordova-plugin-opentok

Cordova Plugin for OpenTok - add webrtc video to your iOS or Android App
Other
162 stars 270 forks source link

Support For getDevices API #131

Open devand123 opened 9 years ago

devand123 commented 9 years ago

Hey there,

First off, love what you're doing! Please keep up the good work!

I was wondering if there was any plan to support the OT.getDevices API documented here?:

https://tokbox.com/opentok/tutorials/publish-stream/js/#set_camera_mic

Or if there was another way we could go about specifying using the back camera for example?

aullman commented 9 years ago

Good question. @songz I suppose we could add the 'videoSource' support and have it just be 'front' or 'back'. Is there any reason to be able to list all of the available devices if there are only ever going to be 2? It looks like that's how the OpenTok iOS SDK works, it takes an AVCaptureDevicePosition which can either be 'front', 'back' or 'undefined'.

mark-veenstra commented 9 years ago

+1 for support in Cordova plugin

silkroadnomad commented 9 years ago

I really need getDevices in the Cordova plugin too! (..) I would like to connect a Bluetooth microphone instead of the internal iOS/Android mic. Does anybody know how to do that in a Cordova App?