7a677ead93
The Audio.js setRef callback does not behave like react ref callback in that the former will not have fired before componentDidMount but the later will have. So for audio output preview, trying to set sink id on mount will no-op because it does not have a ref yet to Audio.js, possibly leading to audio output previews playing on the default speaker device. This generally has not been a user visible problem due to coincidence; other re-renders necessary by the parent of audio output preview will have triggered componentDidUpdates on the audio out preview, which would then set the sink id on the Audio.js ref it should have received by then. |
||
---|---|---|
.. | ||
AudioInputPreview.js | ||
AudioOutputPreview.js | ||
DeviceSelection.js | ||
DeviceSelector.native.js | ||
DeviceSelector.web.js | ||
VideoInputPreview.js | ||
index.js |