voxeet / comms-sdk-react-native

Dolby.io Communications SDK for React Native
https://www.npmjs.com/package/@dolbyio/comms-sdk-react-native
MIT License
8 stars 0 forks source link

[aap] Create React Native model for audio preview #196

Closed graduad closed 1 year ago

graduad commented 1 year ago

In the LocalAudio class we need to add a property that returns an AudioPreview class. This class needs to be crated under this ticket and has to mimic, the ones provided by the native SDKs.

Status can be a method if necessary, and the method can be called status(). However if a property can be used we should do so.

The callback for status change should be called onStatusChange() and should take a handler as argument and return an unsubscribe object.

Record an play methods should mimic Android and have all the non optional arguments as in the Android implementation.