setCurrentDeviceVolume abstract method

int setCurrentDeviceVolume(
  1. TXMediaDeviceType type,
  2. int volume
)

Setting the Volume of the Current Device (for Desktop OS)

This API is used to set the capturing volume of the mic or playback volume of the speaker, but not the volume of the camera.

  • Parameters:
    • volume(int):
      • Volume. Value range: 0-100; default: 100.
    • type(TXMediaDeviceType):
      • Device type.

Implementation

int setCurrentDeviceVolume(TXMediaDeviceType type, int volume);