setCurrentDevice abstract method
Setting the Device to Use (for Desktop OS)
- Parameters:
- deviceId(String):
- Device ID. You can get the ID of a device using the getDevicesList API.
- type(TXMediaDeviceType):
- Device type.
- deviceId(String):
Return Description:
0
: Operation successful;- Negative number: Operation failed.
Implementation
int setCurrentDevice(TXMediaDeviceType type, String deviceId);