Custom Audio Track - React Native
We have introduced the ability to pass a custom Audio track for the Audio of the participants with different encoder configuration.
Creating a Custom Audio Track​
- You can create a Audio Track using
createAudioTrack()
method ofVideoSDK
. - This method can be used to create audio track using different encoding parameters.
Parameters​
-
encoderConfig:
- type:
String
- required:
true
- default:
speech_standard
- Allowed values :
speech_low_quality
|speech_standard
|music_standard
|standard_stereo
|high_quality
|high_quality_stereo
- It will be the encoder configuration you want to use for Audio Track.
- type:
-
context
- type:
Context
- required:
true
- Pass the Android Context for this parameter.
- type:
Returns​
CustomStreamTrack